Part Number Hot Search : 
VSC8021 N26302M 20367 STPS2 DS21354 2SC3296 T3274518 90120
Product Description
Full Text Search
 

To Download EVAL-ADE7953EBZ Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  single phase, multifunction metering ic with neutral current measurement data sheet ade7953 rev. a information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ?2011 analog devices, inc. all rights reserved. features measures active, reactive, and apparent energy; sampled waveform; current and voltage rms provides a second current input for neutral current measurement less than 0.1% error in active and reactive energy measurements over a dynamic range of 3000:1 less than 0.2% error in instantaneous irms measurement over a dynamic range of 1000:1 provides apparent energy measurement and instantaneous power readings 1.23 khz bandwidth operation flexible pga gain stage (up to 22) includes internal integrators for use with rogowski coil sensors spi, i 2 c, or uart communication general description the ade7953 is a high accuracy electrical energy measurement ic intended for single phase applications. it measures line voltage and current and calculates active, reactive, and apparent energy, as well as instantaneous rms voltage and current. the device incorporates three - adcs with a high accuracy energy measurement core. the second input channel simulta- neously measures neutral current and enables tamper detection and neutral current billing. the additional channel incorporates a complete signal path that allows a full range of measurements. each input channel supports independent and flexible gain stages, making the device suitable for use with a variety of current sensors such as current transformers (cts) and low value shunt resistors. two on-chip integrators facilitate the use of rogowski coil sensors. the ade7953 provides access to on-chip meter registers via a variety of communication interfaces including spi, i 2 c, and uart. two configurable low jitter pulse output pins provide outputs that are proportional to active, reactive, or apparent energy, as well as current and voltage rms. a full range of power quality information such as overcurrent, overvoltage, peak, and sag detection are accessible via the external irq pin. independent active, reactive, and apparent no-load detections are included to prevent meter creep. dedicated reverse power ( revp ), zero-crossing voltage (zx), and zero-crossing current (zx_i) pins are also provided. the ade7953 energy metering ic operates from a 3.3 v supply voltage and is available in a 28-lead lfcsp package. functional block diagram iap ian vp vn ibp ibn ade7953 agnd dgnd cs sclk clkin ref reset vdd vinta vintd clkout revp zx cf2 cf1 zx_i 09320-001 irq pga pga pga 1.2v ref x 2 airms lpf airmsos x 2 avrms lpf lpf vrmsos avagain awgain awattos avargain avaros dfc cf1den : dfc cf2den : vgain aphcal hpf aigain digital integrator hpf adc adc adc active, reactive and apparent energies and voltage/current rms calculation for phase b (see phase a for detailed data path). computational block for total reactive power configuration and control uart spi interface i 2 c revp zx zx_i peak angle power factor sag low noise pre-amp phase a and b data miso/ sda/tx mosi/ scl/rx figure 1.
ade7953 data sheet rev. a | page 2 of 68 table of contents features .............................................................................................. 1 ? general description ......................................................................... 1 ? functional block diagram .............................................................. 1 ? revision history ............................................................................... 3 ? specifications..................................................................................... 4 ? timing characteristics ................................................................ 6 ? absolute maximum ratings............................................................ 8 ? esd caution.................................................................................. 8 ? pin configuration and function descriptions............................. 9 ? typical performance characteristics ........................................... 11 ? test circuit ...................................................................................... 16 ? terminology .................................................................................... 17 ? ade7953 power-up procedure.................................................... 18 ? required register setting .......................................................... 18 ? theory of operation ...................................................................... 19 ? analog inputs.............................................................................. 19 ? analog-to-digital conversion.................................................. 19 ? cu r rent channel adcs ............................................................ 21 ? voltage channel adc ............................................................... 21 ? reference circuit ........................................................................ 22 ? root mean square measurement ................................................. 23 ? current channel rms calculation.......................................... 23 ? voltage channel rms calculation........................................... 23 ? active power calculation .............................................................. 24 ? sign of active power calculation............................................. 24 ? active energy calculation......................................................... 25 ? active energy accumulation modes ....................................... 27 ? reactive power calculation........................................................... 28 ? sign of reactive power calculation ......................................... 28 ? reactive energy calculation..................................................... 29 ? reactive energy accumulation modes ................................... 30 ? apparent power calculation ......................................................... 31 ? apparent energy calculation ................................................... 31 ? ampere-hour accumulation.................................................... 32 ? energy-to-frequency conversion................................................ 33 ? pulse output characteristics .................................................... 33 ? energy calibration ......................................................................... 34 ? gain calibration ......................................................................... 34 ? phase calibration ....................................................................... 34 ? offset calibration....................................................................... 35 ? period measurement ...................................................................... 36 ? instantaneous powers and waveform sampling ........................ 37 ? power factor.................................................................................... 38 ? using the line cycle accumulation mode to determine the power factor ............................................................................... 38 ? power factor with no-load detection ................................... 38 ? angle measurement ................................................................... 39 ? no-load detection ........................................................................ 40 ? setting the no-load thresholds .............................................. 40 ? active energy no-load detection........................................... 40 ? reactive energy no-load detection....................................... 41 ? apparent energy no-load detection ..................................... 41 ? zero-crossing detection............................................................... 43 ? zero-crossing output pins....................................................... 43 ? zero-crossing interrupts .......................................................... 43 ? zero-crossing timeout............................................................. 44 ? zero-crossing threshold .......................................................... 44 ? voltage sag detection .................................................................... 45 ? setting the sagcyc register................................................... 45 ? setting the saglvl register.................................................... 45 ? voltage sag interrupt ................................................................. 45 ? peak detection ................................................................................ 46 ? indication of power direction ...................................................... 47 ? reverse power............................................................................. 47 ? sign indication............................................................................ 47 ? overcurrent and overvoltage detection..................................... 48 ? setting the ovlvl and oilvl registers ............................... 48 ? overvoltage and overcurrent interrupts ................................ 48 ? alternative output functions....................................................... 49 ? ade7953 interrupts....................................................................... 50 ? primary interrupts (voltage channel and current channel a) .................................................................................................. 50 ? current channel b interrupts .................................................. 50 ? communicating with the ade7953 ............................................ 51 ? communication autodetection ............................................... 51 ? locking the communication interface ................................... 51 ? spi interface ................................................................................ 52 ? i 2 c interface ................................................................................ 53 ? uart interface........................................................................... 55 ? communication verification and security................................. 57 ?
data sheet ade7953 rev. a | page 3 of 68 write protection ..........................................................................57 ? communication verification.....................................................57 ? checksum register .....................................................................58 ? ade7953 registers .........................................................................60 ? ade7953 register descriptions ...............................................62 ? outline dimensions........................................................................68 ? ordering guide ...........................................................................68 ? revision history 11/11rev. 0 to rev. a changes to figure 1...........................................................................1 changes to table 1 ............................................................................3 changes to absolute maximum ratings section..........................8 changes to table 5 ............................................................................9 replaced typical performance characteristics section.............11 changes to figure 35 ......................................................................16 added ade7953 power-up procedure section..........................18 changes to voltage channel section............................................19 changes to current channel rms calculation section and voltage channel rms calculation section .................................23 changes to active power calculation section ............................24 changes to active energy integration time under steady load section.....................................................................................25 changes to reactive power calculation section ........................28 changes to reactive energy integration time under steady load section ....................................................................................29 changes to figure 65 ......................................................................47 changes to write protection section ...........................................57 replaced checksum register section and added figure 75 and figure 76...........................................................................................58 changes to table 12 ........................................................................59 changes to table 14 ........................................................................60 changes to table 15 ........................................................................61 replaced interrupt enable section and interrupt status registers section .............................................................................66 2/11revision 0: initial version
ade7953 data sheet rev. a | page 4 of 68 specifications vdd = 3.3 v 10%, agnd = dgnd = 0 v, on-chip reference, clkin = 3.58 mhz, t min to t max = ?40c to +85c, register address 0x120 set to 0x30, unless otherwise noted. table 1. parameter min typ max unit test conditions/comments phase error between channels line frequency = 45 hz to 65 hz, hpf on power factor = 0.8 capacitive 0.05 degrees phase lead 37 power factor = 0.5 inductive 0.05 degrees phase lag 60 active energy measurement active energy measurement error (current channel a) 0.1 % over a dynamic range of 3000:1, pga = 1, pga = 22, integrator off active energy measurement error (current channel b) 0.1 % over a dynamic range of 1000:1, pga = 1, pga = 16, integrator off ac power supply rejection vdd = 3.3 v 120 mv rms, 100 hz output frequency variation 0.01 % dc power supply rejection vdd = 3.3 v 330 mv dc output frequency variation 0.01 % active energy measurement bandwidth 1.23 khz ?3 db reactive energy measurement reactive energy measurement error (current channel a) 0.1 % over a dynamic range of 3000:1, pga = 1, pga = 22, integrator off reactive energy measurement error (current channel b) 0.1 % over a dynamic range of 1000:1, pga = 1, pga = 16, integrator off ac power supply rejection vdd = 3.3 v 120 mv rms, 100 hz output frequency variation 0.01 % dc power supply rejection vdd = 3.3 v 330 mv dc output frequency variation 0.01 % reactive energy measurement bandwidth 1.23 khz ?3 db rms measurement irms and vrms measurement bandwidth 1.23 khz irms (current channel a) measurement error 0.2 % over a dynamic range of 1000:1, pga = 1, pga = 22, integrator off irms (current channel b) and vrms measurement error 0.2 % over a dynamic range of 500:1, pga = 1, pga = 16, integrator off analog inputs maximum signal levels 500 mv peak diff erential inputs: iap to ian, ibp to ibn 500 mv peak single-ended input: vp to vn, ibp to ibn 250 mv peak single-ended input: iap to ian input impedance (dc) iap pin 50 m ian pin 50 m ibp, ibn, vp, vn pins 540 k adc offset error uncalibrated error (see the terminology section) current channel b, voltage channel 0 10 mv current channel a ?12 mv pga = 1 ?1 mv pga = 16, pga = 22 gain error external 1.2 v reference current channel a 3 % current channel b 3 % voltage channel 3 %
data sheet ade7953 rev. a | page 5 of 68 parameter min typ max unit test conditions/comments analog performance s i g n a l - t o - n o i s e r a t i o current channel a 74 db current channel b 72 db voltage channel 70 signal-to-noise-and-distortion ratio current channel a, current channel b 68 db voltage channel 65 db bandwidth (?3 db) 1.23 khz cf1 and cf2 pulse outputs maximum output frequency 206.9 khz duty cycle 50 % cf1 or cf2 frequency > 6.25 hz active low pulse width 80 ms cf1 or cf2 frequency < 6.25 hz jitter 0.04 % cf1 or cf2 frequency = 1 hz output high voltage, v oh 2.4 v i source = 500 a at 25c output low voltage, v ol 0.4 v i sink = 8 ma at 25c reference nominal 1.2 v at ref pin ref input voltage range 1.19 1.2 1.21 v t min to t max input capacitance 10 pf reference error 0.9 mv t a = 25c output impedance 1.2 k temperature coefficient 10 50 ppm/c clkin/clkout pins all specifications clkin = 3.58 mhz input clock frequency 3.58 mhz crystal equivalent series resistance 30 200 logic inputs reset , clkin, cs, sclk, mosi/scl/rx, miso/sda/tx input high voltage, v inh 2.4 v vdd = 3.3 v 10% input low voltage, v inl 0.8 v vdd = 3.3 v 10% input current, i in v in = 0 v mosi/scl/rx, miso/sda/tx, reset ?10 a cs, sclk 1 a input capacitance, c in 10 pf logic outputs irq , revp , zx, zx_i, clkout, mosi/scl/rx, miso/sda/tx v d d = 3 . 3 v 1 0 % output high voltage, v oh 3.0 v i source = 800 a output low voltage, v ol 0.4 v i sink = 2 ma power supply for specified performance vdd 3.0 v 3.3 v ? 10% 3.6 v 3.3 v + 10% i dd 7 9 ma
ade7953 data sheet rev. a | page 6 of 68 timing characteristics spi interface timing vdd = 3.3 v 10%, agnd = dgnd = 0 v, on-chip reference, clkin = 3.58 mhz, t min to t max = ?40c to +85c, un less otherwise noted. table 2. parameter description min 1 max 1 unit t cs cs to sclk edge 50 ns t sclk sclk period 200 ns t sl sclk low pulse width 80 ns t sh sclk high pulse width 80 ns t dav data output valid after sclk edge 80 ns t dsu data input setup time before sclk edge 70 ns t dhd data input hold time after sclk edge 5 ns t df data output fall time 20 ns t dr data output rise time 20 ns t sr sclk rise time 20 ns t sf sclk fall time 20 ns t dis miso disabled after cs rising edge 5 40 ns t sfs cs high after sclk edge 0 ns t sfs_lk cs high after sclk edge (when writing to comm_lock bit) 1200 ns 1 min and max values are typical minimum and maximum values. spi interface timing diagram lsb in intermediate bits intermediate bits t sfs_lk t sfs t dis t cs t sl t df t sh t dhd t dav t dsu t sr t sf t dr t sclk msb in mosi miso sclk cs 09320-003 msb out lsb out figure 2. spi interface timing
data sheet ade7953 rev. a | page 7 of 68 i 2 c interface timing vdd = 3.3 v 10%, agnd = dgnd = 0 v, on-chip reference, clkin = 3.58 mhz, t min to t max = ?40c to +85c, un less otherwise noted. table 3. standard mode fast mode parameter description min 1 max 1 min 1 max 1 unit f scl scl clock frequency 0 100 0 400 khz t hd;sta hold time for a start or repeated start condition 4.0 0.6 s t low low period of scl clock 4.7 1.3 s t high high period of scl clock 4.0 0.6 s t su;sta setup time for a repeated start condition 4.7 0.6 s t hd;dat data hold time 0 3.45 0 0.9 s t su;dat data setup time 250 100 ns t r rise time of sda and scl signals 1000 20 300 ns t f fall time of sda and scl signals 300 20 300 ns t su;sto setup time for stop condition 4.0 0.6 s t buf bus-free time between a stop and start condition 4.7 1.3 s t sp pulse width of suppressed spikes n/a 50 ns 1 min and max values are typical minimum and maximum values. i 2 c interface timing diagram t f t r t hd;dat t hd;sta t high t su;sta t su;dat t f t hd;sta t sp t su;sto t r t buf t low sda scl start condition repeated start condition stop condition start condition 09320-002 figure 3. i 2 c interface timing
ade7953 data sheet rev. a | page 8 of 68 absolute maximum ratings t a = 25c, unless otherwise noted. table 4. parameter rating vdd to agnd ?0.3 v to +3.7 v vdd to dgnd ?0.3 v to +3.7 v analog input voltage to agnd, iap, ian, ibp, ibn, vp, vn ?2 v to +2 v reference input voltage to agnd ?0.3 v to vdd + 0.3 v digital input voltage to dgnd ?0.3 v to vdd + 0.3 v digital output voltage to dgnd ?0.3 v to vdd + 0.3 v operating temperature industrial range ?40c to +85c storage temperature range ?65c to +150c note that regarding the temperature profile used in soldering rohs-compliant parts, analog devices, inc., advises that reflow profiles should conform to j-std 20 from jedec. refer to the jedec website for the latest revision. stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. esd caution
data sheet ade7953 rev. a | page 9 of 68 pin configuration and fu nction descriptions 1 zx 2 reset 3 vintd 4 dgnd 5 iap 6 ian 7 pull_high notes 1. create a similar pad on the pcb under the exposed pad. solder the exposed pad to the pad on the pcb to confer mechanic a l strength to the p a ckage. do not connect the pads to agnd. 17 vdd 18 clkin 19 clkout 20 revp 21 zx_i 16 agnd 15 vinta 8 pull_hig h 9 ibp 10 ibn 11 vn 12 vp 13 ref 14 pull_low 24 cf2 25 scl k 26 miso/sda/t x 27 m osi/scl/r x 28 cs 23 cf1 22 irq 09320-004 ade7953 top view (not to scale) figure 4. pin configuration table 5. pin function descriptions pin no. mnemonic description 1 zx voltage channel zero-crossing output pin. see the voltage channel zero crossing section. this pin can be configured to output a range of alternative power quality signals (see the alternative output functions section). 2 reset active low reset input. to initiate a hardware reset, this pin must be brought low for at minimum of 10 s. 3 vintd this pin provides access to the 2.5 v digital ldo. this pin should be decoupled with a 4.7 f capacitor in parallel with a 100 nf ceramic capacitor. 4 dgnd ground reference for the digital circuitry. 5, 6 iap, ian analog input for current channel a (p hase current channel). this differential voltage input has a maximum input range of 500 mv. the maximum pin voltage for single-ended use is 250 mv. the pga associated with this input has a maximum gain stage of 22 (see the analog inputs section). 7, 8 pull_high these pins should be connected to vdd for proper operation. 9, 10 ibp, ibn analog input for current channel b (neutral current channel). this differential voltage input has a maximum input range of 500 mv. the pga associated with this input has a maximum gain of 16 (see the analog inputs section). 11, 12 vn, vp analog input for voltage channel. this differential voltage input has a maximum input range of 500 mv. the pga associated with this input has a maximum gain of 16 (see the analog inputs section). 13 ref this pin provides access to the on-chip voltage reference. the internal reference has a nominal voltage of 1.2 v. this pin should be decoupled with a 4.7 f capacitor in parallel with a 100 nf ceramic capacitor. alternatively, an external reference voltage of 1.2 v can be applied to this pin (see the reference circuit section). 14 pull_low this pin should be connected to agnd for proper operation. 15 vinta this pin provides access to the 2.5 v analog ldo. this pin should be decoupled with a 4.7 f capacitor in parallel with a 100 nf ceramic capacitor. 16 agnd ground reference for the analog circuitry. 17 vdd power supply (3.3 v) for the ade7953. for specified ope ration, the input to this pin should be within 3.3 v 10%. this pin should be decoupled with a 10 f capacitor in parall el with a 100 nf ceramic capacitor. 18 clkin master clock input for the ade7953. an external clock can be provided at this input. alternatively, a parallel resonant at crystal can be connected across the clkin and clkout pins to provide a clock source for the ade7953. the clock frequency for specified operation is 3.58 mhz. ceramic load capacitors of a few tens of picofarads should be used with the gate oscillator circ uit. refer to the crystal manufacturers data sheet for the load capacitance requirements. 19 clkout a crystal can be connected across this pin and clkin to provide a clock source for the ade7953.
ade7953 data sheet rev. a | page 10 of 68 pin no. mnemonic description 20 revp reverse power output indicator. see the reverse power section. this pin can be configured to output a range of alternative power quality signals (see the alternative output functions section). 21 zx_i current channel zero-crossing output pin. see the current channel zero crossing section. this pin can be configured to output a range of alternative power quality signals (see the alternative output functions section). 22 irq interrupt output. see the ade7953 interrupts section. 23 cf1 calibration frequency output 1. 24 cf2 calibration frequency output 2. 25 sclk serial clock input for the serial peripheral interfac e. all serial communications are synchronized to the clock (see the spi interface section). if using the i 2 c interface, this pin must be pulled high. if using the uart interface, this pin must be pulled to ground. 26 miso/sda/tx data output for spi interface/bidirectional data line for i 2 c interface/transmit line for uart interface. 27 mosi/scl/rx data input for spi in terface/serial clock input for i 2 c interface/receive line for uart interface. 28 cs chip select for spi interface. this pin must be pulled high if using the i 2 c or uart interface. epad exposed pad. create a similar pad on the pcb under the exposed pad. solder the exposed pad to the pad on the pcb to confer mechanical strength to the package. do not connect the pads to agnd.
data sheet ade7953 rev. a | page 11 of 68 typical performance characteristics ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-101 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) 09320-104 pf = ?0.5 pf = +1.0 pf = +0.5 figure 5. current channel a active energy error as a percentage of reading (gain = 1, power factor = 1) over temperature with internal reference, integrator off figure 8. current channel a active energy error as a percentage of reading (gain = 22, temperature = 25c) over power factor with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) 09320-102 pf = ?0.5 pf = +1.0 pf = +0.5 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) vdd = 3.63v vdd = 3.30v vdd = 2.97v 09320-105 figure 6. current channel a active energy error as a percentage of reading (gain = 1, temperature = 25c) over power factor with internal reference, integrator off figure 9. current channel a active energy error as a percentage of reading (gain = 22, temperature = 25c, power factor = 1) over supply voltage with internal refere nce, integrator off ? 1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 45 50 55 frequency (hz) 60 65 error (% of reading) pf = ?0.5 pf = +1.0 pf = +0.5 09320-106 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-103 figure 10. current channel a active energy error as a percentage of reading (gain = 22, temperature = 25c) over frequency and power factor with internal refere nce, integrator off figure 7. current channel a active energy error as a percentage of reading (gain = 22, power factor = 1) over temperature with internal reference, integrator off
ade7953 data sheet rev. a | page 12 of 68 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 0.01 0.1 1 10 100 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-107 figure 11. current channel a reactive energy error as a percentage of reading (gain = 1, power factor = 0) over temperature with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) pf = +0.866 pf = ?0.866 pf = 0 09320-108 0.01 0.1 1 10 100 figure 12. current channel a reactive energy error as a percentage of reading (gain = 1, temperature = 25c) over power factor with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-109 0.01 0.1 1 10 100 figure 13. current channel a reactive energy error as a percentage of reading (gain = 22, power factor = 0) over temperature with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) pf = +0.866 pf = ?0.866 pf = 0 09320-110 0.01 0.1 1 10 100 figure 14. current channel a reactive energy error as a percentage of reading (gain = 22, temperature = 25c) over power factor with internal reference, integrator off ? 1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 45 50 55 frequency (hz) 60 65 error (% of reading) 09320-111 pf = +0.866 pf = ?0.866 pf = 0 figure 15. current channel a reactive energy error as a percentage of reading (gain = 22, temperature = 25c) over frequency and power factor with internal refere nce, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) gain = 1 gain = 22 09320-112 0.1 1 10 100 figure 16. current channel a irms error as a percentage of reading (temperature = 25c, power factor = 1) over gain with internal reference, integrator off
data sheet ade7953 rev. a | page 13 of 68 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-113 0.1 1 10 100 figure 17. current channel b active energy error as a percentage of reading (gain = 1, power factor = 1) over temperature with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-114 pf = ?0.5 pf = +1.0 pf = +0.5 0.1 1 10 100 figure 18. current channel b active energy error as a percentage of reading (gain = 1, temperature = 25c) over power factor with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-115 vdd = 3.63v vdd = 3.30v vdd = 2.97v 0.1 1 10 100 figure 19. current channel b active energy error as a percentage of reading (gain = 1, temperature = 25c, power factor = 1) over supply voltage with internal refere nce, integrator off ? 1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 45 50 55 frequency (hz) 60 65 error (% of reading) pf = ?0.5 pf = +1.0 pf = +0.5 09320-116 figure 20. current channel b active energy error as a percentage of reading (gain = 1, temperature = 25c) over frequency and power factor with internal refere nce, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-117 0.1 1 10 100 figure 21. current channel b reactive energy error as a percentage of reading (gain = 1, power factor = 0) over temperature with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) pf = +0.866 pf = ?0.866 pf = 0 09320-118 0.1 1 10 100 figure 22. current channel b reactive energy error as a percentage of reading (gain = 1, temperature = 25c) over power factor with internal reference, integrator off
ade7953 data sheet rev. a | page 14 of 68 ? 1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 45 50 55 frequency (hz) 60 65 error (% of reading) 09320-219 pf = +0.866 pf = ?0.866 pf = 0 figure 23. current channel b reactive energy error as a percentage of reading (gain = 1, temperature = 25c) over frequency and power factor with internal refere nce, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-220 0.1 1 10 100 figure 24. current channel b irms error as a percentage of reading (gain = 1, temperature = 25c, power factor = 1) with internal refere nce, integrator off ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) voltage channel (% full scale) 09320-121 0.1 1 10 100 figure 25. vrms error as a percentage of reading (temperature = 25c, power factor = 1) with internal reference, integrator off ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-122 0.01 0.1 1 10 100 figure 26. current channel a active energy error as a percentage of reading (gain = 16, power factor = 1) over temperature with internal reference, integrator on ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-123 pf = ?0.5 pf = +1.0 pf = +0.5 0.01 0.1 1 10 100 figure 27. current channel a active energy error as a percentage of reading (gain = 16, temperature = 25c) over power factor with internal reference, integrator on ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-124 0.1 1 10 100 figure 28. current channel b active energy error as a percentage of reading (gain = 16, power factor = 1) over temperature with internal reference, integrator on
data sheet ade7953 rev. a | page 15 of 68 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-225 pf = ?0.5 pf = +1.0 pf = +0.5 0.1 1 10 100 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-228 0.1 1 10 100 figure 29. current channel b active energy error as a percentage of reading (gain = 16, temperature = 25c) over power factor with internal reference, integrator on figure 32. current channel b reactive energy error as a percentage of reading (gain = 16, power factor = 0) over temperature with internal reference, integrator on ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) pf = +0.866 pf = ?0.866 pf = 0 09320-129 0.1 1 10 100 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) +25c ?40c +85c 09320-126 0.01 0.1 1 10 100 figure 30. current channel a reactive energy error as a percentage of reading (gain = 16, power factor = 0) over temperature with internal reference, integrator on figure 33. current channel b reactive energy error as a percentage of reading (gain = 16, temperature = 25c) over power factor with internal reference, integrator on ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-130 channel a channel b 0.1 1 10 100 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 error (% of reading) current channe l (% full scale) 09320-227 pf = +0.866 pf = ?0.866 pf = 0 0.01 0.1 1 10 100 figure 34. irms error as a percentage of reading (gain = 16, temperature = 25c) with intern al reference, integrator on figure 31. current channel a reactive energy error as a percentage of reading (gain = 16, temperature = 25c) over power factor with internal reference, integrator on
ade7953 data sheet rev. a | page 16 of 68 test circuit same as cf2 0.1f 4.7f cs mosi/scl/rx miso/sda/tx sclk cf2 cf1 ref clkout clkin reset iap ian ibp ibn vn vp pull_high pull_low 2 14 5 6 9 10 11 12 8 21 28 27 26 25 24 23 22 13 19 18 ade7953 15 17 3 vinta vdd vintd 416 dgnd agnd 0.1f 4.7f 0.1f 4.7f 20pf + + + 3.3v 3.3v 20pf 3.58mhz pull_high 3.3v 7 33nf 1k ? 1k ? 1k ? 10k ? 10k ? 10k ? 500 ? 1k ? 1m ? 110v 33nf 3.3v 3.3 v 1f 33nf 33nf 1k ? 1k ? 33nf 33nf zx_i revp 1 20 zx irq 09320-099 figure 35. test circuit
data sheet ade7953 rev. a | page 17 of 68 terminology measurement error adc offset error the error associated with the energy measurement made by the ade7953 is defined by = erro r t measuremen (1) the adc offset error refers to the dc offset associated with the analog inputs to the adcs. it means that, with the analog inputs connected to agnd, the adcs still see a dc analog input signal. the magnitude of the offset depends on the gain and input range selection. however, the offset is removed from the current and voltage channels by a high-pass filter (hpf), and the power calculation is not affected by this offset. %100 ? energytrue energytrue ade7953 by registered energy phase error between channels the high-pass filter (hpf) and digital integrator introduce a slight phase mismatch between the current channels and the voltage channel. the all-digital design ensures that the phase matching between the current channels and the voltage channel is within 0.05 over a range of 45 hz to 65 hz. this internal phase mismatch can be combined with the external phase error (from current sensor or component tolerance) and calibrated with the phase calibration registers. gain error the gain error in the adcs of the ade7953 is defined as the per-channel difference between the measured adc output code (minus the offset) and the ideal output code (see the current channel adcs section and the voltage channel adc section). the difference is expressed as a percentage of the ideal code. power supply rejection (psr) psr quantifies the ade7953 measurement error as a percentage of reading when the power supplies are varied. for the ac psr measurement, a reading at nominal supplies (3.3 v) is taken. a second reading is obtained with the same input signal levels when an ac signal (120 mv rms/100 hz) is introduced onto the supplies. any error introduced by this ac signal is expressed as a percentage of reading (see the measurement error definition). for the dc psr measurement, a reading at nominal supplies (3.3 v) is taken. a second reading is obtained with the same input signal levels when the power supplies are varied by 10%. any error introduced is again expressed as a percentage of reading.
ade7953 data sheet rev. a | page 18 of 68 ade7953 power-up procedure the ade7953 contains an on-chip power supply monitor that supervises the power supply (vdd). while the voltage applied to the vdd pin is below 2 v 10%, the chip is in an inactive state. once vdd crosses the 2 v 10% threshold, the power supply monitor keeps the ade7953 in an inactive state for an additional 26 ms. this time delay allows vdd to reach the minimum specified operating voltage of 3.3 v C 10%. once the minimum specified operating voltage is met, the internal circuitry is enabled; this is accomplished in approximately 40 ms. once the start-up sequence is complete and the ade7953 is ready to receive communication from a microcontroller, the reset flag is set in the irqstata register (address 0x22d and address 0x32d). an external interrupt is triggered on the irq pin. the reset interrupt is enabled by default and cannot be disabled, hence an external interrupt always occurs at the end of a power-up procedure, hardware or software reset. it is highly recommended that the reset interrupt is used by the microcontroller to gate the first communication with the ade7953 . if the interrupt is not used, a timeout can be implemented; however, as the start-up sequence can vary part- to-part and over temperature, a timeout of a least 100 ms is recommended. the reset interrupt provides the most efficient way of monitoring the completion of the ade7953 start-up sequence. once the start-up sequence is complete, communication with the ade7953 can begin. see the communicating with the ade7953 section for further details. required register setting f or optimum performance, register address 0x120 must be configured by the user after powering up the ade7953 . this register ensures that the optimum timing configuration is selected to maximize the accuracy and dynamic range. this register is not set by default and thus must be written by the user each time the ade7953 is powered up. register 0x120 is a protected register and thus a key must be written to allow the register to be modified. the following sequence should be followed: ? write 0xad to register address 0xfe: this unlocks the register 0x120 ? write 0x30 to register address 0x120 : this configures the optimum settings the above two instructions must be performed in succession to be successful.
data sheet ade7953 rev. a | page 19 of 68 theory of operation analog inputs the ade7953 includes three analog inputs that form two current channels and one voltage channel. in a standard configuration, current channel a is used to measure the phase current, and current channel b is used to measure the neutral current. the voltage channel input measures the difference between the phase voltage and the neutral voltage. the ade7953 can, however, be used with alternative voltage and current combinations as long as the analog input specifications described in this section are met. current channel a current channel a is a fully differential voltage input that is designed to be used with a current sensor. this input is driven by two pins: iap (pin 5) and ian (pin 6). the maximum differ- ential voltage that can be applied to iap and ian is 500 mv. a common-mode voltage of less than 25 mv is recommended. common-mode voltages in excess of this recommended value may limit the available dynamic range. a programmable gain amplifier (pga) stage is provided on current channel a with gain options of 1, 2, 4, 8, 16, and 22 (see table 6 ). the maximum full-scale input of current channel a is 250 mv when using a single-ended configuration and, therefore, when using a gain setting of 1, the dynamic range is limited. the current channel a gain is configured by writing to the pga_ia register (address 0x008). by default, the current channel a pga is set to 1. a gain option of 22 is offered exclusively on current channel a, allowing high accuracy measurement for signals of very small amplitude. this configuration is particularly useful when using small value shunt resistors or rogowski coils. current channel b current channel b is a fully differential voltage input that is designed to be used with a current sensor. this input is driven by two pins: ibp (pin 9) and ib n (pin 10). the maximum differ- ential voltage that can be applied to ibp and ibn is 500 mv. a common-mode voltage of less than 25 mv is recommended. common-mode voltages in excess of this recommended value may limit the available dynamic range. a pga gain stage is provided on current channel b with gain options of 1, 2, 4, 8, and 16 (see tabl e 6 ). the current channel b gain is configured by writing to the pga_ib register (address 0x009). by default, the current channel b pga is set to 1. voltage channel the voltage channel input a full differential input driven by two pins: vp (pin 12) and vn (pin 11). the voltage channel is typically connected in a single-ended configuration. the maximum single-ended voltage that can be applied to vp is 500 mv with respect to vn. a common-mode voltage of less than 25 mv is recommended. common-mode voltages in excess of this recommended value may limit the dynamic range capabilities of the ade7953 . a pga gain stage is provided on the voltage channel with gain options of 1, 2, 4, 8, and 16 (see table 6 ). the voltage channel gain is configured by writing to the pga_v register (address 0x007). by default, the voltage channel pga is set to 1. table 6. pga gain settings gain full-scale differential input (mv) pga_ia[2:0] (addr 0x008) pga_ib[2:0] (addr 0x009) pga_v[2:0] (addr 0x007) 1 500 000 1 000 000 2 250 001 001 001 4 125 010 010 010 8 62.5 011 011 011 16 31.25 100 100 100 22 22.7 101 n/a n/a 1 when a gain of 1 is selected on c urrent channel a, the maximum pin input is limited to 250 mv. therefore, when us ing a single-ended configuration, the maximum input is 250 mv with respect to agnd. analog-to-digital conversion the analog-to-digital conversion in the ade7953 is performed by three second-order - modulators. for the sake of clarity, the block diagram in figure 36 shows the operation of a first- order - modulator. the analog-to-digital conversion consists of a - modulator followed by a low-pass filter stage. 24 digital low-pass filter r c + ? clkin/4 integrator +v ref ?v ref 1-bit dac latched comparator analog low-pass filte r .....10100101..... + ? 09320-013 figure 36. - conversion the - modulator converts the input signal into a continuous serial stream of 1s and 0s at a rate determined by the sampling clock. the ade7953 sampling clock is equal to 895 khz (clkin/4). the 1-bit dac in the feedback loop is driven by the serial data stream. the dac output is subtracted from the input signal. if the loop gain is high enough, the average value of the dac output (and, therefore, the bit stream) can approach that of the input signal level. for any given input value in a single sampling interval, the data from the 1-bit adc is virtually meaningless. a meaningful result is obtained only when a large number of samples is averaged. this averaging is carried out in the second part of the adc, the digital low-pass filter. by averaging a large number of bits from the modulator, the low- pass filter can produce 24-bit data-words that are proportional to the input signal level. the - converter uses two techniques oversampling and noise shapingto achieve high resolution from what is essentially a 1-bit conversion technique.
ade7953 data sheet rev. a | page 20 of 68 oversampling oversampling is the first technique used to achieve high resolution. oversampling means that the signal is sampled at a rate (frequency) that is many times higher than the bandwidth of interest. for example, the sampling rate in the ade7953 is 895 khz, and the bandwidth of interest is 40 hz to 1.23 khz. oversampling has the effect of spreading the quantization noise (noise due to sampling) over a wider bandwidth. with the noise spread more thinly over a wider bandwidth, the quantization noise in the band of interest is lowered (see figure 37 ). noise signal noise signal 0 3 447.5 frequency (khz) high resolution output from digital lpf 895 0 3 447.5 frequency (khz) 895 digital filter shaped noise antialiasing filter (rc) sampling frequency 09320-014 figure 37. noise reduction due to oversampling and noise shaping in the analog modulator however, oversampling alone is not sufficient to improve the signal-to-noise ratio (snr) in the bandwidth of interest. for example, an oversampling ratio of 4 is required to increase the snr by only 6 db (1 bit). to keep the oversampling ratio at a reasonable level, it is possible to shape the quantization noise so that the majority of the noise lies at the higher frequencies (see the following section. noise shaping noise shaping is the second technique used to achieve high resolution. in the - modulator, the noise is shaped by the integrator, which has a high-pass-type response for the quanti- zation noise due to feedback. the result is that most of the noise is at the higher frequencies, where it can be removed by the digital low-pass filter. this noise shaping is shown in figure 37 . antialiasing filter as shown in figure 36 , an external low-pass rc filter is required on the input to each modulator. the role of this filter is to prevent aliasing. aliasing refers to the frequency components in the input signal that are folded back and appear in the sampled signal. this effect occurs with signals that are higher than half the sampling rate of the adc (also known as the nyquist frequency) appear- ing in the sampled signal at a frequency below half the sampling rate. this concept is depicted in figure 38 . a liasing effects sampling frequency image frequencies 0 1.23 3 447.5 frequency (khz) 895 09320-015 figure 38. aliasing effect the arrows shown in figure 38 depict the frequency compo- nents above the nyquist frequency (447.5 khz in the case of the ade7953 ) being folded back down. aliasing occurs with all adcs, regardless of the architecture. xigain dsp reference hpfen bit config[2] digital integrator intenx bit config[1:0] active and reactive power calculation current peak, overcurrent detection ix waveform sampling register current rms (irms) calculation hpf adc pga ixp zx_i detection pga_x bits 1, 2, 4, 8, 16, 22 (for ia only) v in ixn 0 9320-019 lpf1 figure 39. current channel adc and signal path
data sheet ade7953 rev. a | page 21 of 68 current channel adcs figure 39 shows the adc signal path and signal processing for current channel a, which is accessed through the iap and ian pins. the signal path for current channel b is identical and is accessed through the ibp and ibn pins. the adc output is a twos complement, 24-bit data-word that is available at a rate of 6.99 ksps (thousand samples per second). with the specified full- scale analog input of 250 mv and a pga_ix gain setting of 2, the adc produces its maximum output code. the adc output swings between ?6,500,000 lsbs (decimal) and +6,500,000 lsbs. this output varies from part to part. as shown in figure 39 , there is a high-pass filter (hpf) in each current channel signal path. the hpf is enabled by default and removes any dc offset in the adc output. it is highly recom- mended that this filter be enabled at all times, but it can be disabled by clearing the hpfen bit (bit 2) in the config register (address 0x102). clearing the hpfen bit disables the filters in both current channels and in the voltage channel. di/dt current sensor and digital integrator as shown in figure 39 , the current channel signal path for both channel a and channel b includes an internal digital integrator. this integrator is disabled by default and is required only when interfacing with a di/dt sensor, such as a rogowski coil. when using either a shunt resistor or a current transformer (ct), this integrator is not required and should remain disabled. a di/dt sensor detects changes in the magnetic field caused by ac current. figure 40 shows the principle of a di/dt current sensor. magnetic field created by current (directly proportional to current) + emf (electromotive force) ? induced by changes in magnetic flux density (di/dt) 09320-020 figure 40. principle of a di/dt current sensor the flux density of a magnetic field induced by a current is directly proportional to the magnitude of the current. changes in the magnetic flux density passing through a conductor loop generate an electromotive force (emf) between the two ends of the loop. the emf is a voltage signal that is proportional to the differential of the current over time (di/dt). the voltage output from the di/dt sensor is determined by the mutual inductance between the current-carrying conductor and the di/dt sensor. the current signal must be recovered from the di/dt signal before it can be used. an integrator is therefore necessary to restore the signal to its original form. the ade7953 has a built-in digital integrator on each current channel that recovers the current signal from the di/dt sensor. both digital integrators are disabled by default. the digital integrator on current channel a is enabled by setting the intena bit (bit 0) in the config register (address 0x102). the digital integrator on current channel b is enabled by setting the intenb bit (bit 1) in the config register (address 0x102). voltage channel adc figure 41 shows the adc signal path and signal processing for the voltage channel input, which is accessed through the vp and vn pins. the adc output is a twos complement, 24-bit data- word that is available at a rate of 6.99 ksps (thousand samples per second). with the specified full-scale analog input of 500 mv and a pga_v gain setting of 1, the adc produces its maximum output code. the adc output swings between ?6,500,000 lsbs (decimal) and +6,500,000 lsbs. note that this output varies from part to part. as shown in figure 41 , there is a high-pass filter (hpf) in the voltage channel signal path. the hpf is enabled by default and removes any dc offset in the adc output. it is highly recom- mended that this filter be enabled at all times, but it can be disabled by clearing the hpfen bit (bit 2) in the config register (address 0x102). clearing the hpfen bit disables the filters in both current channels and in the voltage channel.
ade7953 data sheet rev. a | page 22 of 68 reference circuit the ade7953 has an internal voltage reference of 1.2 v nominal, which appears on the ref pin. this reference voltage is used by the adcs in the ade7953 . the ref pin can be overdriven by an external source, for example an external 1.2 v reference. the voltage of the ade7953 internal reference drifts slightly over temperature (see the specifications section). the value of the tem- perature drift may vary slightly from part to part. a drift of x% in the reference results in a 2x% deviation in meter accuracy. the reference drift is typically minimal and is usually much smaller than the drift of other components in the meter. by default, the ade7953 is configured to use the internal reference. if bit 0 of the ex_ref register (address 0x800) is set to 1, an external voltage reference can be applied to the ref pin. vgain reference hpfen bit config[2] dsp active and reactive power calculation v olt a ge peak, overvoltage, sag detection vwaveform sampling register voltage rms (vrms) calculation hpf adc pga vp zx detection pga_v bits 1, 2, 4, 8, 16 v in vn 09320-025 lpf1 figure 41. voltage channel adc and signal path
data sheet ade7953 rev. a | page 23 of 68 root mean square measurement root mean square (rms) is a measurement of the magnitude of an ac signal. specifically, the rms of an ac signal is equal to the amount of dc required to produce an equivalent amount of power in the load. the rms is expressed mathematically in equation 1. = t 2 dttf t rms 0 )( 1 (1) for time-sampled signals, rms calculation involves squaring the signal, taking the average, and obtaining the square root. = = n n nf n rms 1 2 ][ 1 (2) as implied by equation 2, the rms measurement contains information from the fundamental and all harmonics over a 1.23 khz measurement bandwidth. the ade7953 provide rms measurements for current channel a, current channel b, and the voltage channel simultaneously. these measurements have a settling time of approximately 200 ms and are updated at a rate of 6.99 khz. current channel rms calculation the ade7953 provides rms measurements for both current channel a and current channel b. figure 42 shows the signal path for this calculation. the signal processing is identical for current channel a and current channel b. 09320-040 current signal from hpf or integrator (if enabled) lpf x 2 2 12 irmsos[23:0] irmsx[23:0] figure 42. current channel rms signal processing as shown in figure 42 , the current channel adc output samples are used to continually compute the rms. the rms is achieved by low-pass filtering the square of the output signal and then taking a square root of the result. the 24-bit unsigned rms measurements for current channel a and current channel b are available in the irmsa (address 0x21a and address 0x31a) and irmsb (address 0x21b and address 0x31b) registers, respectively. both of these registers are updated at a rate of 6.99 khz. with full- scale inputs on current channel a and current channel b, the expected reading on the irmsa and irmsb register is 9032007d. because the lpf used in the rms signal path is not ideal, it is recommended that the irmsx registers be read synchronously to the zero-crossing signal (see the zero-crossing detection section). this helps to stabilize reading-to-reading variation by removing the effect of any 2 ripple present on the rms measurement. voltage channel rms calculation the ade7953 provides an rms measurement on the voltage channel. figure 43 shows the signal path for this calculation. 09320-041 voltage signal from hpf lpf x 2 2 12 vrmsos[23:0] vrms[23:0] figure 43. voltage channel rms signal processing as shown in figure 43 , the voltage channel adc output samples are used to continually compute the rms. the rms is achieved by low-pass filtering the square of the output signal and then taking a square root of the result. the 24-bit unsigned voltage channel rms measurement is available in the vrms register (address 0x21c and address 0x31c). this register is updated at a rate of 6.99 khz. with full-scale inputs on the voltage channel, a vrms reading of 9032007d can be expected. because the lpf used in the rms signal path is not ideal, it is recommended that the vrms register be read synchronously to the zero-crossing signal (see the zero-crossing detection section). this helps to stabilize reading-to-reading variation by removing the effect of any 2 ripple present on the rms measurement.
ade7953 data sheet rev. a | page 24 of 68 active power calculation power is defined as the rate of energy flow from the source to the load. it is defined as the product of the voltage and current waveforms. the resulting waveform is called the instantaneous power signal and is equal to the rate of energy flow at every instant of time. the unit of power is the watt or joules/sec. )sin(2 t v v(t) = (3) )sin(2 t i i(t) = (4) where: v is the rms voltage. i is the rms current. p(t) = v(t) i(t) (5) p(t) = vi ? vi cos(2 t) (6) the average power over an integral number of line cycles (n) is given by the expression in equation 7. = = nt vidttp nt p 0 )( 1 (7) where: p is the active or real power. t is the line cycle period. the active power is equal to the dc component of the instanta- neous power signal (p(t) in equation 5). the active power is therefore equal to vi. this relationship is used to calculate active power in the ade7953 . figure 44 illustrates this concept. instantaneous power signal instantaneous active power signal: vrms irms p(t) = vrms irms ? vrms irms cos(2 & t) vrms irms 0x0 0000 i(t) = 2 irms sin( & t) v(t) = 2vrmssin( & t) 09320-043 figure 44. active power calculation the signal chain for the active power and energy calculations in the ade7953 is shown in figure 45 . the instantaneous power signal p(t) is generated by multiplying the current and voltage signals. the dc component of the instantaneous power signal is then extracted by lpf2 (low-pass filter) to obtain the active power information. because lfp2 does not have an ideal brick wall frequency response, the active power signal has some ripple associated with it. this ripple is sinusoidal and has a frequency equal to twice the line frequency. because the ripple is sinusoidal in nature, it is removed when the active power signal is integrated to compute the active energy (see the active energy calculation section). the ade7953 computes the active power simultaneously on current channel a and current channel b and stores the resulting measurements in the awatt (address 0x212 and address 0x312) and bwatt (address 0x213 and address 0x313) registers, respectively. with full-scale inputs, the expected reading in the awatt and bwatt registers is approximately 4862401 lsbs (decimal). the active power measurements are taken over a bandwidth of 1.23 khz and include the effects of any harmonics within that range. the active power registers are updated at a rate of 6.99 khz and can be read using the waveform sampling mode (see the instantaneous powers and waveform sampling section). sign of active power calculation the active power measurement in the ade7953 is a signed calculation. if the phase differential between the current and voltage waveforms is more than 90, the power is negative. negative power indicates that energy is being injected back into the grid. the accmode register (address 0x201 and address 0x301) includes two sign indication bits that show the sign of the active power of current channel a (apsign_a) and current channel b (apsign_b). see the sign indication section for more information. vgain current channel a or b voltage channel hpf xigain digital integrator hpf 48 0 + + xwattos 09320-044 phcalx internal accumulation fixed internal threshold active power signal aenergyx 23 0 lpf2 xwgain figure 45. active energy signal chain
data sheet ade7953 rev. a | page 25 of 68 active energy calculation as described in the active power calculation section, power is defined as the rate of energy flow. this relationship can be expressed mathematically as shown in equation 8. d t de p = (8) where: p is power. e is energy. conversely, energy is given as the integral of power. = pdt e (9) the ade7953 achieves the integration of the active power signal in two stages. in the first stage, the active power signals are accumulated in an internal 48-bit register every 143 s (6.99 khz) until an internal fixed threshold is reached. when this threshold is reached, a pulse is generated and is accumu- lated in 24-bit, user-accessible accumulation registers. the internal threshold results in a maximum accumulation rate of approximately 206.9 khz with full-scale inputs. this process occurs simultaneously on current channel a and current channel b, and the resulting readings can be read in the 24-bit aenergya (address 0x21e and address 0x31e) and aenergyb (address 0x21f and address 0x31f) registers. both stages of the accumulation are signed and, therefore, negative energy is subtracted from positive energy. this discrete time accumulation, or summation, is equivalent to integration in continuous time. equation 10 expresses this relationship. ? ? ? ? ? ? == = 1 0 n t t p(nt) limp(t)dte (10) where: n is the discrete time-sampled number. t is the sample period. the discrete time sample period (t) for the accumulation registers in the ade7953 is 4.83 s (1/206.9 khz). this is illustrated in figure 46 , which shows the energy register roll-over rates with full-scale inputs. 0x000000 0 x7fffff 0 x3fffff 0x400000 0x800000 a energyx[23:0] 39.9 19.95 59.85 time (seconds) xwgain = 0x200000 xwgain = 0x400000 xwgain = 0x600000 0 9320-042 figure 46. energy register roll -over time for active energy note that the energy register contents roll over to full-scale negative (0x800000) and continue to increase in value when the power or energy flow is positive. conversely, if the power is negative, the energy register underflows to full-scale positive (0x7fffff) and continues to decrease in value. aenergya and aenergyb are read-with-reset registers by default. this means that the contents of these registers are reset to 0 after a read operation. this feature can be disabled by clearing bit 6 (rstread) of the lcycmode register (address 0x004). the ade7953 includes two sets of interrupts that are triggered when the active energy register is half full (positive or negative) or when an overflow or underflow condition occurs. the first set of interrupts is associated with the current channel a active energy, and the second set of interrupts is associated with the current channel b active energy. these interrupts are disabled by default and can be enabled by setting the aehfa and aeofa bits in the irqena register (address 0x22c and address 0x32c) for current channel a, and the aehfb and aeofb bits in the irqenb register (address 0x22f and address 0x32f) for current channel b. active energy integration time under steady load the discrete time sample period (t) for the accumulation registers is 4.83 s (1/206.9 khz). with full-scale sinusoidal signals on the analog inputs and the awgain and bwgain registers set to 0x400000, a pulse is generated and added to the aenergya and aenergyb registers every 4.83 s. the maximum positive value that can be stored in the 24-bit aenergya and aenergyb registers is 0x7fffff before the register overflows. the integration time under these conditions can be calculated as follows: time = 0x7fffff 4.83 s = 40.5 sec (11)
ade7953 data sheet rev. a | page 26 of 68 active energy line cy cle accumulation mode the number of half line cycles written to the linecyc register is used for both the current channel a and current channel b accumulation periods. at the end of a line cycle accumulation cycle, the aenergya and aenergyb registers are updated, and the cycend flag is set in the irqstata register (address 0x22d and address 0x32d). if the cycend bit in the irqena register is set, an external interrupt is issued on the irq pin. in this way, the irq pin can also be used to signal the completion of the line cycle accumulation. another accumulation cycle begins immediately as long as the alwatt and blwatt bits in the lcycmode register remain set. in active energy line cycle accumulation mode, the energy accumulation of the ade7953 is synchronized to the voltage channel zero crossing so that the active energy can be accumu- lated over an integral number of half line cycles. this feature is available for both current channel a and current channel b active energy. the advantage of summing the active energy over an integral number of half line cycles is that the sinusoidal component of the active energy is reduced to 0 (see equation 12 to equation 15). this eliminates any ripple in the energy calcula- tion. energy is calculated more accurately and in a shorter time because the integration period can be shortened. the line cycle accumulation mode can be used for fast calibration and also to obtain the average power over a specified time period. using equation 6, the following description of the energy accumulation can be derived: p(t) = vi C [ lpf ] cos(2 t) (12) dtt lpf vidt te nt nt ? ?= 00 )2cos(][ ) ( (13) the contents of the aenergya and aenergyb registers are updated synchronous to the cycend flag. the aenergya and aenergyb registers hold their current values until the end of the next line cycle period, when the contents are replaced with the new reading. if the read-with-reset bit (rstread) in the lcycmode register (address 0x004) is set, the contents of the aenergya and aenergyb regist ers are cleared after a read and remain at 0 until the end of the next line cycle period. where: n is an integer. t is the line cycle period. because the sinusoidal component is integrated over an integer number of line cycles, its value is always 0. therefore, += nt vidt e(t) 0 0 (14) if a new value is written to the linecyc register (address 0x101) midway through a line cycle accumulation, the new value is not internally loaded until the end of a line cycle period. when the linecyc register is updated mid-reading, the current energy accumulation cycle is completed, and the new value is then programmed, ready for the next cycle. this prevents any invalid readings due to changes to the linecyc register (see figure 47 ). e = vint (15) ae nergyx register cycend irq linecyc register new line cycle value programmed internal line cycle updated 09320-017 line cycle accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting t h e a lwat t a n d b lwat t b i t s t o 1 i n t h e l c yc m o d e r e g i s t e r (address 0x004). the accumulation time should be written to the linecyc register (address 0x101) in the unit of number of half line cycles. the ade7953 can accumulate energy for up to 65,535 half line cycles. this equates to an accumulation period of approximately 655 sec with 50 hz inputs and 546 sec with 60 hz inputs. figure 47. changing the linecyc register xwgain 48 0 + + xwattos 0 9320-016 internal accumulation fixed internal threshold calibration control zero-crossing detection output from voltage channel adc output from lpf2 aenergyx 23 0 lpf1 15 0 linecyc figure 48. active energy line cycle accumulation
data sheet ade7953 rev. a | page 27 of 68 note that when line cycle accumulation mode is first enabled, the reading after the first cycend flag should be ignored because it may be inaccurate. this is because the line cycle accumulation mode is not synchronized to the zero crossing and, therefore, the first reading may not be over a complete number of half line cycles. after the first line cycle accumulation is complete, all successive readings will be correct. active energy accumulation modes signed accumulation mode the default active energy accumulation mode for the ade7953 is a signed accumulation based on the active power information. positive-only accu mulation mode the ade7953 includes a positive-only accumulation mode option for current channel a and current channel b active energy. in positive-only accumulation mode, the energy accumulation is done only for positive power, ignoring any occurrence of negative power above or below the no-load threshold (see figure 49 ). no-load threshold active power no-load threshold aenergyx 0 9320-018 figure 49. positive-only accumulation mode the positive-only accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the awattacc and bwattacc bits to 01 in the accmode register (address 0x201 and address 0x301). if enabled, the positive-only accumulation mode affects both energy accumulation registers, aenergya and aenergyb, as well as the cf output pins (see the energy-to-frequency conversion section). note that when the positive-only accumu- lation mode is enabled on a current channel, the reverse power feature is not available on that current channel (see the reverse power section). absolute accumulation mode the ade7953 includes an absolute energy accumulation mode for current channel a and current channel b active energy. in absolute accumulation mode, the energy accumulation is done using the absolute active power, ignoring any occurrences of energy below the no-load threshold (see figure 50 ). no-load threshold active power no-load threshold aenergyx 0 9320-119 figure 50. active energy absolute accumulation mode the absolute accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the awattacc and bwattacc bits to 10 in the accmode register (address 0x201 and address 0x301). if enabled, the absolute accumulation mode affects both energy accumulation registers, aenergya and aenergyb, as well as the cf output pins (see the energy-to-frequency conversion section). note that when the absolute accumulation mode is enabled on a current channel, the reverse power feature is not available on that current channel (see the reverse power section).
ade7953 data sheet rev. a | page 28 of 68 reactive power calculation reactive power is defined as the product of the voltage and current waveforms when one of these signals is phase shifted by 90. the resulting waveform is called the instantaneous reactive power signal. equation 16 provides an expression for the instantaneous reactive power signal in an ac system when the phase of the current channel is shifted by +90. rp(t) = v(t) i ? (t) (16) rp(t) = vi sin( ) + vi sin(2 t + ) (17) )sin(2 ?t v v(t) += (18) )sin(2 t i i(t) = (19) i ? (t) = ? ? ? ? ? ? + 2 sin2 t i (20) where: v is the rms voltage. i is the rms current. is the phase difference between the voltage and current channel. the average reactive power over an integral number of line cycles (n) is given by the expression in equation 21. = = nt vidttrp nt rp 0 )sin( )( 1 (21) where: rp is the reactive power. t is the line cycle period. the reactive power is equal to the dc component of the instantaneous reactive power signal (rp(t) in equation 16). this relationship is used to calculate reactive power in the ade7953 . the signal chain for the reactive power and energy calculations in the ade7953 is shown in figure 51 . the instantaneous reactive power signal rp(t) is generated by multiplying the current signal and the voltage signal. simulta- neous calculations are performed using current channel a and current channel b. the multiplication is performed over the full 1.23 khz bandwidth and results in a reactive power measurement that includes all harmonics included in this range. the ade7953 reactive power measurement is stable over the full frequency range. the dc component of the instantaneous reactive power signal is then extracted by a low-pass filter to obtain the reactive power information. the frequency response of the lpfs in the reactive power signal paths is identical to the frequency response of the lpfs used in the active power calculation. because the lpf does not have an ideal brick wall frequency response, the reactive power signal has some ripple associated with it. this ripple is sinusoidal and has a frequency equal to twice the line frequency. because the ripple is sinusoidal in nature, it is removed when the reactive power signal is integrated to compute the reactive energy (see the reactive energy calculation section). the ade7953 computes the reactive power simultaneously on current channel a and current channel b and stores the resulting measurements in the avar (address 0x214 and address 0x314) and bvar (address 0x215 and address 0x315) registers, respectively. with full-scale inputs, the expected reading in the avar and bvar registers is approximately 4862401 lsbs (decimal). the reactive power registers are updated at a rate of 6.99 khz and can be read using the waveform sampling mode (see the instantaneous powers and waveform sampling section). sign of reactive power calculation the reactive power measurement in the ade7953 is a signed calculation. if the current waveform is leading the voltage wave- form, the reactive power is negative. negative reactive power indicates a capacitive load. if the current waveform is lagging the voltage waveform, the reactive power is positive. positive reactive power indicates an inductive load. the accmode register (address 0x201 and address 0x301) includes two sign indication bits that show the sign of the reactive power of current channel a (varsign_a) and current channel b (varsign_b). see the sign indication section for more information. current channel a or b 48 0 + + xvaros 09320-120 voltage channel internal accumulation fixed internal threshold reactive power signal renergyx 23 0 reactive power algorithm xvargain figure 51. reactive energy signal chain
data sheet ade7953 rev. a | page 29 of 68 reactive energy calculation the ade7953 achieves the integration of the reactive power signal in two stages. in the first stage, the reactive power signals are accumulated in an internal 48-bit register every 143 s (6.99 khz) until an internal fixed threshold is reached. when this threshold is reached, a pulse is generated and is accumu- lated in 24-bit, user-accessible accumulation registers. the internal threshold results in a maximum accumulation rate of approximately 206.9 khz with full-scale inputs. this process occurs simultaneously on current channel a and current channel b, and the resulting readings can be read in the 24-bit renergya (address 0x220 and address 0x320) and renergyb (address 0x221 and address 0x321) registers. both stages of the accumulation are signed and, therefore, negative energy is subtracted from positive energy. note that the reactive energy register contents roll over to full- scale negative (0x800000) and continue to increase in value when the power or energy flow is positive. conversely, if the power is negative, the energy register underflows to full-scale positive (0x7fffff) and continues to decrease in value. renergya and renergyb are read-with-reset registers by default. this means that the contents of these registers are reset to 0 after a read operation. this feature can be disabled by clearing bit 6 (rstread) of the lcycmode register (address 0x004). the ade7953 includes two sets of interrupts that are triggered when the reactive energy register is half full (positive or negative) or when an overflow or underflow condition occurs. the first set of interrupts is associated with the current channel a reactive energy, and the second set of interrupts is associated with the current channel b reactive energy. these interrupts are disabled by default and can be enabled by setting the varehfa and vareofa bits in the irqena register (address 0x22c and address 0x32c) for current channel a, and the varehfb and vareofb bits in the irqenb register (address 0x22f and address 0x32f) for current channel b. reactive energy integration time under steady load the discrete time sample period (t) for the accumulation registers is 4.83 s (1/206.9 khz). with full-scale sinusoidal signals on the analog inputs and a phase shift of 90, a pulse is generated and added to the renergya and renergyb registers every 4.83 s, assuming that the avargain and bvargain registers are set to 0x00. the maximum positive value that can be stored in the 24-bit renergya and renergyb registers is 0x7fffff before the register overflows. the integration time under these conditions can be calculated as follows: time = 0x7fffff 4.83 s = 40.5 sec (22) reactive energy line cy cle accumulation mode in reactive energy line cycle accumulation mode, the energy accumulation of the ade7953 is synchronized to the voltage channel zero crossing so that the reactive energy on current channel a and current channel b can be accumulated over an integral number of half line cycles. line cycle accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the alvar and blvar bits to 1 in the lcycmode register (address 0x004). the accumulation time should be written to the linecyc register (address 0x101) in the unit of number of half line cycles. the number of half line cycles written to the linecyc register is used for both the current channel a and current channel b accumulation periods. the ade7953 can accumulate reactive energy for up to 65,535 half line cycles. this equates to an accu- mulation period of approximately 655 sec with 50 hz inputs and 546 sec with 60 hz inputs. at the end of a line cycle accumulation cycle, the renergya and renergyb registers are updated, and the cycend flag in the irqstata register (address 0x22d and address 0x32d) is set. if the cycend bit in the irqena register is set, an external interrupt is issued on the irq pin. in this way, the irq pin can also be used to signal the completion of the line cycle accumula- tion. another accumulation cycle begins immediately as long as the alvar and blvar bits in the lcycmode register remain set. 48 0 + + xvaros 09320-021 internal accumulation fixed internal threshold calibration control zero-crossing detection output from voltage channel adc output from lpf2 renergyx 23 0 linecyc 15 0 lpf1 xvargain figure 52. reactive energy line cycle accumulation
ade7953 data sheet rev. a | page 30 of 68 the contents of the renergya and renergyb registers are updated synchronous to the cycend flag. the renergya and renergyb registers hold their current values until the end of the next line cycle period, when the contents are replaced with the new reading. if the read-with-reset bit (rstread) in the lcycmode register (address 0x004) is set, the contents of the renergya and renergyb registers are cleared after a read and remain at 0 until the end of the next line cycle period. if a new value is written to the linecyc register (address 0x101) midway through a line cycle accumulation, the new value is not internally loaded until the end of a line cycle period. when the linecyc register is updated mid-reading, the current energy accumulation cycle is completed, and the new value is then programmed, ready for the next cycle. this prevents any invalid readings due to changes to the linecyc register (see figure 47 ). note that when line cycle accumulation mode is first enabled, the reading after the first cycend flag should be ignored because it may be inaccurate. this is because the line cycle accumulation mode is not synchronized to the zero crossing and, therefore, the first reading may not be over a complete number of half line cycles. after the first line cycle accumulation is complete, all successive readings will be correct. reactive energy accumulation modes signed accumulation mode the default reactive energy accumulation mode for the ade7953 is a signed accumulation based on the reactive power information. antitamper accumulation mode the ade7953 includes an antitamper accumulation mode that accumulates reactive energy depending on the sign of the active power. when the active power is positive, the reactive power is added to the reactive energy accumulation register. when the active power is negative, the reactive power is subtracted from the reactive energy accumulation register (see figure 53 ). antitamper accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the avaracc and bvaracc bits to 01 in the accmode register (address 0x201 and address 0x301). if enabled, the antitamper accumulation mode affects both reactive energy accumulation registers, renergya and renergyb, as well as the cf output pins (see the energy-to-frequency conversion section). no-load threshold active power reactive power no-load threshold no-load threshold no-load threshold renergyx 0 9320-022 figure 53. reactive energy accumulation in antitamper accumulation mode absolute accumulation mode the ade7953 includes an absolute energy accumulation mode for current channel a and current channel b reactive energy. in absolute accumulation mode, the energy accumulation is done using the absolute reactive power, ignoring any occurrences of energy below the no-load threshold (see figure 54 ). no-load threshold reactive power no-load threshold renergyx 0 9320-023 figure 54. reactive energy absolute accumulation mode the absolute accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the avaracc and bvaracc bits to 10 in the accmode register (address 0x201 and address 0x301). if enabled, the absolute accumulation mode affects both energy accumulation registers, renergya and renergyb, as well as the cf output pins (see the energy-to-frequency conversion section).
data sheet ade7953 rev. a | page 31 of 68 apparent power calculation apparent power is defined as the maximum power that can be delivered to a load. vrms and irms are the effective voltage and current delivered to the load, respectively. the apparent power can, therefore, be defined as the product of vrms and irms. this relationship is independent of the phase angle between the voltage and current. equation 26 provides an expression for the instantaneous apparent power signal in an ac signal. )sin( 2 t vrms v(t) = (23) )sin( 2 ?t irms i(t) += (24) p(t) = v(t) i(t) (25) p(t) = vrms irms cos( ) ? (26) vrms irms cos( 2t + ) the ade7953 computes the apparent power simultaneously on current channel a and current channel b and stores the resulting measurements in the ava (address 0x210 and address 0x310) and bva (address 0x211 and address 0x311) registers, respectively. the apparent power measurement is taken over a bandwidth of 1.23 khz and includes the effects of any harmonics within that range. the apparent power registers are updated at a rate of 6.99 khz and can be read using the waveform sampling mode (see the instantaneous powers and waveform sampling section). apparent energy calculation the apparent energy is given as the integral of the apparent power. = power(t)dt apparent energy apparent (27) the ade7953 achieves the integration of the apparent power signal in two stages. in the first stage, the apparent power signals are accumulated in an internal 48-bit register every 143 s (6.99 khz) until an internal fixed threshold is reached. when this threshold is reached, a pulse is generated and is accumulated in 24-bit, user accessible accumulation registers. the internal threshold results in a maximum accumulation rate of approximately 206.9 khz with full-scale inputs. this process occurs simultaneously on current channel a and current channel b, and the resulting readings can be read in the 24-bit apenergya (address 0x222 and address 0x322) and apenergyb (address 0x223 and address 0x323) registers. note that the apparent energy register contents roll over to full- scale negative (0x800000) and continue to increase in value when the power or energy flow is positive. conversely, if the power is negative, the energy register underflows to full-scale positive (0x7fffff) and continues to decrease in value. apenergya and apenergyb are read-with-reset registers by default. this means that the contents of these registers are reset to 0 after a read operation. this feature can be disabled by clearing bit 6 (rstread) of the lcycmode register (address 0x004). the ade7953 includes two sets of interrupts that are triggered when the apparent energy register is half full (positive or negative) or when an overflow or underflow condition occurs. the first set of interrupts is associated with the current channel a apparent energy, and the second set of interrupts is associated with the current channel b apparent energy. these interrupts are disabled by default and can be enabled by s e t t i n g t h e va e h fa a n d va e o fa b i t s i n t h e i r q e na r e g i s t e r (address 0x22c and address 0x32c) for current channel a, and the vaehfb and vaeofb bits in the irqenb register (address 0x22f and address 0x32f) for current channel b. apparent energy integration time under steady load the discrete time sample period (t) for the accumulation registers is 4.83 s (1/206.9 khz). with full-scale sinusoidal signals on the analog inputs, a pulse is generated and added to the apenergya and apenergyb registers every 4.83 s, assuming that the avagain and bvagain registers are set to 0x00. the maximum positive value that can be stored in the 24-bit apenergya and apenergyb registers is 0x7fffff before the register overflows. the integration time under these conditions can be calculated as follows: time = 0x7fffff 4.83 s = 40.5 sec (28) current rms channel a or b 48 0 + + xvaos 09320-024 voltage rms internal accumulation fixed internal threshold apparent power signal apenergyx 23 0 xvagain figure 55. apparent energy accumulation signal chain
ade7953 data sheet rev. a | page 32 of 68 48 0 + + xvaos 09320-125 internal accumulation fixed internal threshold calibration control zero-crossing detection output from voltage channel adc apparent power signal apenergyx 23 0 15 0 linecyc lpf1 xvagain figure 56. apparent energy line cycle accumulation apparent energy line cy cle accumulation mode in apparent energy line cycle accumulation mode, the energy accumulation of the ade7953 is synchronized to the voltage channel zero crossing so that the apparent energy on current channel a and current channel b can be accumulated over an integral number of half line cycles. line cycle accumulation mode is disabled by default and can be enabled on current channel a and current channel b by setting the alva and blva bits to 1 in the lcycmode register (address 0x004). the accumulation time should be written to the linecyc register (address 0x101) in the unit of number of half line cycles. the number of half line cycles written to the linecyc register is used for both the current channel a and current channel b accumulation periods. the ade7953 can accumulate apparent energy for up to 65,535 half line cycles. this equates to an accu- mulation period of approximately 655 sec with 50 hz inputs and 546 sec with 60 hz inputs. at the end of a line cycle accumulation cycle, the apenergya and apenergyb registers are updated, and the cycend flag in the irqstata register (address 0x22d and address 0x32d) is set. if the cycend bit in the irqena register is set, an external interrupt is issued on the irq pin. in this way, the irq pin can also be used to signal the completion of the line cycle accumula- tion. another accumulation cycle begins immediately, as long as t h e a lva a n d b lva b i t s i n t h e l c yc m o d e r e g i s t e r r e m a i n s e t . the contents of the apenergya and apenergyb registers are updated synchronous to the cycend flag. the apenergya and apenergyb registers hold their current values until the end of the next line cycle period, when the contents are replaced with the new reading. if the read-with-reset bit (rstread) in the lcycmode register (address 0x004) is set, the contents of the apenergya and apenergyb registers are cleared after a read and remain at 0 until the end of the next line cycle period. if a new value is written to the linecyc register (address 0x101) midway through a line cycle accumulation, the new value is not internally loaded until the end of a line cycle period. when the linecyc register is updated mid-reading, the current energy accumulation cycle is completed, and the new value is then programmed, ready for the next cycle. this prevents any invalid readings due to changes to the linecyc register (see figure 47 ). note that when line cycle accumulation mode is first enabled, the reading after the first cycend flag should be ignored because it may be inaccurate. this is because the line cycle accumulation mode is not synchronized to the zero crossing and, therefore, the first reading may not be over a complete number of half line cycles. after the first line cycle accumulation is complete, all successive readings will be correct. ampere-hour accumulation in a tampering situation where no voltage is available to the energy meter, the ade7953 can accumulate the ampere-hour measure- ment instead of the apparent power in the apenergya and apenergyb registers. if enabled, the current channel a and current channel b irms measurements are continually accu- mulated instead of the apparent power. if enabled, the apparent power cf output pin also reflects the ampere-hour measurement (see the energy-to-frequency conversion section). all the signal processing and calibration registers available for the apparent power and apparent energy accumulation remain active when the ampere-hour accumulation mode is enabled. this includes the apparent energy no-load feature (see the apparent energy no-load section). recalibration is required in this mode due to internal scaling differences between the irms and apparent signals.
data sheet ade7953 rev. a | page 33 of 68 energy-to-frequency conversion the ade7953 provides two energy-to-frequency conversions for calibration purposes. after initial calibration at manufacturing, the manufacturer or end customer is often required to verify the meter accuracy. one convenient way to do this is to provide an output frequency that is proportional to the active, reactive, or apparent power, or to the current rms under steady load condi- tions. this output frequency provides a simple single-wire interface that can be optically isolated to interface to external calibration equipment. the ade7953 includes two fully programmable calibration frequency output pins: cf1 (pin 23) and cf2 (pin 24). the energy-to-frequency conversion is illustrated in figure 57 . dfc 1 cfxden cfx pulse output va cfxsel bits in cfmode register irms var watt irmsa + irmsb awatt + bwatt 09320-026 figure 57. energy-to-frequency conversion two digital-to-frequency converters (dfcs) are used to generate the pulse outputs. the dfc generates a pulse each time 1 lsb is accumulated in the energy register. an output pulse is generated when cfxden number of pulses is generated at the dfc output. the cf1 and cf2 pins can be configured to output a signal that is proportional to the active power, reactive power, apparent power, or irms on current channel a or current channel b. in addition, it is possible to configure cf1 and cf2 to output a signal that is proportional to the sum of the current channel a irms and the current channel b irms, or, alternatively, propor- tional to the sum of the active power on current channel a and the active power on current channel b. recalibration is required in this configuration because the actual cf output equals the sum of the active power on current channel a and the active power on current channel b, divided by 2. the cf1 and cf2 output pins are programmed by setting the cf1sel and cf2sel bits in the cfmode register (address 0x107). both pulse outputs (cf1 and cf2) are disabled by default and can be enabled by clearing the cf1dis and cf2dis bits, respectively, in the cfmode register (address 0x107). pulse output characteristics the pulse outputs for both dfcs stay low for 80 ms if the pulse period is longer than 160 ms (6.25 hz). if the pulse period is shorter than 160 ms, the duty cycle of the pulse outputs is 50%. the pulse outputs are active low. the maximum output frequency with ac inputs at full scale and with cfxden = 0x00 is approxi- mately 206.9 khz. the ade7953 includes two unsigned 16-bit registers, cf1den (address 0x103) and cf2den (address 0x104) that control the cf output frequency on the cf1 and cf2 pins, respectively. the 16-bit frequency scaling registers can scale the output frequency by 1/(2 16 C 1) to 1 with a step of 1/(2 16 C 1). note that when modifying the cf1den and cf2den registers, two sequential write operations must be performed to ensure that the write is successful.
ade7953 data sheet rev. a | page 34 of 68 energy calibration gain calibration the active, reactive, and apparent power measurements can be calibrated on current channel a and current channel b separately. this allows meter-to-meter gain variation to be compensated for. the awgain register (address 0x282 and address 0x382) controls the active power gain calibration on current channel a, and the bwgain register (address 0x28e and address 0x38e) controls the active power gain calibration on current channel b. the default value of the xwgain registers is 0x400000, which corresponds to no gain calibration. the minimum value that can be written to the xwgain registers is 0x200000, which represents a gain adjustment of ?50%. the maximum value that can be written to the xwgain registers is 0x600000, which represents a gain adjustment of +50%. equation 29 shows the relationship between the gain adjustment and the xwgain registers. output power (w) = (29) ? ? ? ? ? ? ? ? 400000x0 xwgain power active similar gain calibration registers are available for the reactive power and the apparent power. the reactive power on current channel a and current channel b can be gain calibrated using the avargain (address 0x283 and address 0x383) and bvargain (address 0x28f and address 0x38f) registers, respectively. the apparent power on current channel a and current channel b can be gain calibrated using the avagain (address 0x284 and address 0x384) and bvagain (address 0x290 and address 0x390) registers, respectively. the xvargain and xvagain registers affect the reactive and apparent powers in the same way that the xwgain registers affect the active power. equation 29 can therefore be modified to represent the gain calibration of the reactive and apparent powers, as shown in equation 30 and equation 31. output power (var) = (30) ? ? ? ? ? ? ? ? 400000x0 xvargain power reactive output power (va) = (31) ? ? ? ? ? ? ? ? 400000x0 xvagain power apparent current channel gain adjustment a gain calibration register is also provided on current channel b. this register can be used to match current channel b to current channel a for simple calibration and computation. the current channel b gain calibration is performed using the bigain register (address 0x28c and address 0x38c). equation 32 shows the relationship between the gain adjustment and the irmsb register. irmsb expected = (32) ? ? ? ? ? ? ? ? 400000x0 bigain irmsb initial similar registers are available for the voltage channel and for current channel a. the vgain register (address 0x281 and address 0x381) and the aigain register (address 0x280 and address 0x380) provide the calibration adjustment and function in the same way as the bigain register. phase calibration the ade7953 is designed to function with a variety of current transducers, including those that induce inherent phase errors. a phase error of 0.1 to 0.3 is not uncommon for a current transformer (ct). these phase errors can vary from part to part, and they must be corrected to achieve accurate power readings. the errors associated with phase mismatch are particularly noticeable at low power factors. the ade7953 provides a means of digitally calibrating these small phase errors by introducing a time delay or a time advance. because different sensors can be used on current channel a and current channel b, separate phase calibration registers are included on each channel. the phcala register (address 0x108) can be used to correct phase errors on current channel a, and the phcalb register (address 0x109) can be used to correct phase errors on current channel b. both registers are in 10-bit sign magnitude format, with the msb indicating whether a time delay or a time advance is added to the corresponding current channel. writing a 0 to the msb of the phcalx register intro- duces a time delay to the current channel. writing a 1 to the msb of the phcalx register introduces a time advance. the maximum range that can be written to phcalx[8:0] is 383 (decimal). one lsb of the phcalx register is equivalent to a time delay or time advance of 1.117 s (clkin/4). with a line frequency of 50 hz, the resolution is 0.02/lsb ((360 50 hz)/ 895 khz), which provides a total correction of 7.66 in either direction. with a line frequency of 60 hz, the resolution is 0.024/lsb ((360 60 hz)/895 khz), which provides a total correction of 9.192 in either direction.
data sheet ade7953 rev. a | page 35 of 68 offset calibration power offsets the ade7953 includes offset calibration registers for the active, reactive, and apparent powers on current channel a and current channel b. offsets can exist in the power calculations due to crosstalk between channels on the pcb and in the ade7953 . the offset calibration allows these offsets to be removed to increase the accuracy of the measurement at low input levels. the active power offset can be corrected on current channel a and current channel b by adjusting the awattos (address 0x289 and address 0x389) and bwattos (address 0x295 and address 0x395) registers, respectively. the xwattos registers are 24-bit, signed twos complement registers with default values of 0. one lsb in the xwattos register is equivalent to 0.001953 lsbs in the active power measurement. the xwattos value is, therefore, applied to the xwatt register, shifted by nine bits, as shown in figure 58 . 23 9 0 xwattos 23 0 xwatt 09320-027 figure 58. xwattos and xwatt registers with full-scale inputs on the voltage and current channels, the expected power reading is approximately 4862401 lsbs (deci- mal). at ?60 db (1000:1) on current channel a and current channel b, the expected readings in the awatt and bwatt registers, respectively, are a pproximately 4862 (decimal). one lsb of the xwatt register, therefore, corresponds to 0.000039% at ?60 db. the reactive power offset can be corrected on current channel a and current channel b by adjusting the avaros (address 0x28a and address 0x38a) and bvaros (address 0x296 and address 0x396) registers, respectively. the xvaros registers affect the reactive power in the same way that the xwattos registers affect the active power. the apparent power offset can be corrected on current channel a and current channel b by adjusting the avaos (address 0x28b and address 0x38b) and bvaos (address 0x297 and address 0x397) registers, respectively. the xvaos registers affect the apparent power in the same way that the xwattos registers affect the active power. rms offsets the ade7953 includes offset calibration registers to allow offset in the rms measurements to be corrected. offset cali- bration registers are available for the irms measurements on current channel a and current channel b, as well as for the vrms measurement. offset can exist in the rms calculation due to input noise that is integrated in the dc component of v 2 (t). the offset calibration allows these offsets to be removed to increase the accuracy of the measurement at low input levels. the voltage rms offset can be corrected by adjusting the vrmsos register (address 0x288 and address 0x388). this 24-bit, signed twos complement register has a default value of 0, indicating that no offset is added. the vrmsos value is applied prior to the square root function. equation 33 shows the effect of the vrmsos register on the vrms measurement. 12 2 2 vrmsos vrms vrms 0 + = (33) where vrms 0 is the initial vrms reading prior to offset calibration. the current rms offset is calibrated in a similar way. the airmsos register (address 0x286 and address 0x386) compensates for offsets in the irmsa measurement, and the birmsos register (address 0x292 and address 0x392) compensates for offsets in the irmsb measurement. both registers are 24-bit, signed twos complement registers. the xirmsos registers affect the irms measurements in the same way that the vrmsos register affects the vrms measurement. equation 33 can therefore be modified to represent the offset calibration on the irms, as shown in equation 34 and equation 35. 12 2 2 airmsos irmsa irmsa 0 + = (34) 12 2 2 birmsos irmsb irmsb 0 + = (35)
ade7953 data sheet rev. a | page 36 of 68 period measurement the ade7953 provides a period measurement of the voltage channel. this measurement is provided in the 16-bit, unsigned period register (address 0x10e). the period register is updated once every line period and has a settling time of 30 ms to 40 ms associated with it before the period measurement is stable. the period measurement has a resolution of 4.48 s/lsb (223 khz clock), which represents 0.0224% when the line frequency is 50 hz and 0.0268% when the line frequency is 60 hz. the value of the period register for a 50 hz network is approxi- mately 4460 in decimal (223 khz/50 hz) and 3716 in decimal (223 khz/60 hz) for a 60 hz network. the period register is stable at 1 lsb when the line is established and the measure- ment does not change. the following equation can be used to compute the line period and frequency using the period register: sec khz223 1]0:15period[ + = l t (36)
data sheet ade7953 rev. a | page 37 of 68 instantaneous powers and waveform sampling the ade7953 provides access to the current and voltage channel waveform data, along with the instantaneous active, reactive, and apparent powers. this information allows the instantaneous data to be analyzed in more detail, including reconstruction of the current and voltage input for harmonic analyses. these measurements are available from a set of 24-bit/32-bit signed registers (see table 7 ). all measurements are updated at a rate of 6.99 khz (clkin/512). the ade7953 provides an interrupt status bit, wsmp, that is triggered at a rate of 6.99 khz, allowing measurements to be synchronized with the instantaneous signal update rate. this status bit is available in the irqstata register (address 0x22d and address 0x32d). this signal can also be configured to trigger an interrupt on the external irq pin by setting the wsmp bit (bit 17) in the irqena register (address 0x22c and address 0x32c). the ade7953 also provides the option of issuing an unlatched, data-ready signal at the same rate of 6.99 khz. this signal provides the same information as the wsmp interrupt, but it is unlatched and, therefore, does not need to be serviced each time that new data is available. the data-ready signal goes high for a period of 280 ns before automatically returning low. the data-ready signal is disabled by default and can be output on the revp , zx, and zx_i pins by setting the revp_alt, zx_alt, and zxi_alt bits to 1001 in the alt_output register (address 0x110). table 7. waveform sampling registers address measurement register 24-bit 32-bit active power (current channel a) awatt 0x212 0x312 active power (current channel b) bwatt 0x213 0x313 reactive power (current channel a) avar 0x214 0x314 reactive power (current channel b) bvar 0x215 0x315 apparent power (current channel a) ava 0x210 0x310 apparent power (current channel b) bva 0x211 0x311 current (current channel a) ia 0x216 0x316 current (current channel b) ib 0x217 0x317 voltage (voltage channel) v 0x218 0x318
ade7953 data sheet rev. a | page 38 of 68 power factor the ade7953 provides a direct power factor measurement simultaneously on current channel a and current channel b. power factor in an ac circuit is defined as the ratio of the active power flowing to the load to the apparent power. the power factor measurement is defined in terms of leading or lagging, referring to whether the current waveform is leading or lagging the voltage waveform. when the current waveform is leading the voltage waveform, the load is capacitive and is defined as a negative power factor. when the current waveform is lagging the voltage waveform, the load is inductive and is defined as a positive power factor. the relationship of the current waveform to the voltage wave- form is illustrated in figure 59 . active (?) reactive (?) active (+) reactive (?) +60 = ; pf = ?0.5 i v i ?60 = ; pf = +0.5 active (?) reactive (+) active (+) reactive (+) capacitive load: current leads voltage inductive load: current lags voltage 09320-028 figure 59. capacitive and inductive loads as shown in figure 59 , the reactive power measurement is negative when the load is capacitive and positive when the load is inductive. the sign of the reactive power can therefore be used to reflect the sign of the power factor. the mathematical definition of power factor is shown in equation 37. power factor = (37) power apparent power active power reactiveofsign u ) ( the power factor measurement includes the effect of all harmonics over the 1.23 khz bandwidth. the power factor readings are stored in two 16-bit, signed registers: pfa (address 0x10a) for current channel a and pfb (address 0x10b) for current channel b. these registers are signed, twos complement registers with the msb indicating the polarity of the power factor. each lsb of the pfx register equates to a weight of 2 ?15 ; therefore, the maximum register value of 0x7fff corresponds to a power factor value of 1. the minimum register value of 0x8000 corresponds to a power factor of ?1. by default, the instantaneous active and apparent power readings are used to calculate the power factor, and the register is updated at a rate of 6.99 khz. the sign bit is taken from the instantaneous reactive energy measurement on each channel. using the line cycle accumulation mode to determine the power factor if a power factor measurement with more averaging is required, the ade7953 can use the line cycle accumulation measurement on the active and apparent energies to determine the power factor (see the active energy line cycle accumulation mode section and the apparent energy line cycle accumulation mode section). this option provides a more stable power factor reading. t o use the line cycle accumulation mode to determine the power factor, the ade7953 must be configured as follows: x the pfmode bit (bit 3) must be set to 1 in the config register (address 0x102). x the line cycle accumulation mode must be enabled on both the active and apparent energies by setting the xlwatt and xlva bits to 1 in the lcycmode register (address 0x004). when using line cycle accumulation to determine the power factor, the update rate of the power factor measurement is an integral number of half line cycles. the number of half line cycles is programmed in the linecyc register (address 0x101). for complete information about setting up the line cycle accumula- tion mode, see the active energy line cycle accumulation mode section and the apparent energy line cycle accumulation mode section. power factor with no-load detection t he power factor measurement is affected by the no-load condition if no-load detection is enabled (see the no-load detection section). the following considerations apply only when no-load detection is enabled and a no-load condition occurs: x if the apparent energy no-load condition is true, the power factor measurement is set to 1 because it is assumed that there is no active or reactive power. x if the active energy no-load condition is true, the power factor measurement is set to 0 because it is assumed that the load is purely capacitive or inductive. x if the reactive energy no-load condition is true, the sign of the power factor is based on the sign of the active power.
data sheet ade7953 rev. a | page 39 of 68 angle measurement the ade7953 can measure the time delay between the current and voltage inputs. this feature is available on both current channel a and current channel b. the negative-to-positive transitions identified by the zero-crossing detection circuit are used as a start and stop for the measurement (see figure 60 ). phase a current angle_x phase a voltage 09320-031 figure 60. current-to-voltage time delay the ade7953 provides a time delay measurement on current channel a and current channel b simultaneously. the result- ing measurements are available in the 16-bit, signed registers angle_a (address 0x10c) and angle_b (address 0x10d). one lsb of the angle_a or angle_b register corresponds to 4.47 s (223 khz clock). this results in a resolution of 0.0807 at 50 hz ((360 50)/223 khz) and 0.0969 at 60 hz ((360 60)/223 khz). the time delay between the current and voltage inputs can be used to characterize how balanced the load is. the delays between phase voltages and currents can be used to compute the power factor on current channel a and current channel b, respec- tively, as shown in equation 38. ? ? ? ? ? ? ? ? = khz223 360 _ coscos line x f xangle o (38) where: x = a or b. f line is 50 hz or 60 hz. this method of determining the power factor does not take into account the effect of any harmonics. therefore, it may not be equal to the true definition of power factor shown in equation 37.
ade7953 data sheet rev. a | page 40 of 68 no-load detection the ade7953 includes a no-load detection feature that eliminates meter creep. meter creep is defined as excess energy that is accumulated by the meter when there is no load attached. the ade7953 warns of this condition and stops energy accumula- tion if the energy falls below a programmable threshold. the ade7953 includes a no-load feature on the active, reactive, and apparent energy measurements. this allows a true no-load condition to be detected and also prevents creep in purely resistive, inductive, or capacitive load conditions. the no-load feature is enabled by default. setting the no-load thresholds three separate 24-/32-bit registers are available to set the no-load threshold on the active, reactive, and apparent energies: ap_noload (address 0x203 and address 0x303), var_noload (address 0x204 and address 0x304), and va_noload (address 0x205 and address 0x305). the active, reactive, and apparent energy no-load thresholds are completely independent and, therefore, all three thresholds are required. the no-load thresholds for all three measurements can be set based on equation 39. 4.1 536,65 y x_noload ?= (39) where: x is ap, var, or va. y is the required threshold amplitude with reference to full-scale energy (for example 20,000:1). as shown in equation 39, the no-load threshold can be config- ured based on the required level with respect to full scale. for example, if a no-load threshold of 10,000:1 of the full-scale current channel is required and the voltage channel is set up to operate at 250 mv (50% of full scale), then a value of 20,000 is required for y. a default value of 58,393 (decimal) is programmed into the ap_noload and var_noload registers, setting the initial no-load threshold to approximately 10,000:1. the va_noload register has a default value of 0x00. the no-load thresholds ap_noload, var_noload, and va_noload must be written before enabling the no-load feature. the no-load feature is enabled using the disnoload register (address 0x001). if the threshold requires modification, disable the no-load detection, modify the threshold, and then reenable the feature using the disnoload register. although separate no-load interrupts are available for current channel a and current channel b (phase and neutral current), the same no-load level is used for both. for example, if the var_noload level is set to 0.05% of full scale, this value is the reactive power no-load threshold used for both current channel a (phase) and current channel b (neutral). active energy no-load detection active energy no-load detection can be used in conjunction with reactive energy no-load detection to establish a true no-load feature. if both the active and reactive energy fall below the no-load threshold, there is no resistive, inductive, or capacitive load. the active energy no-load feature can also be used to prevent creep of the active energy when there is an inductive or capacitive load present. if the active energy on either current channel a (phase) or current channel b (neutral) falls below the programmed threshold, the active energy on that channel ceases to accumu- late in the aenergya and aenergyb registers, respectively. if either the cf1 or cf2 pin is programmed to output active energy, the cf output is disabled and held high (see the energy- to-frequency conversion section). if enabled, the active reverse power indication ( revp ) holds its current state while in the no- load condition (see the section). the current channel a active energy no-load condition is indicated by the ap_noloada bit (bit 6) in the irqstata register (address 0x22d and address 0x32d). the current channel b active energy no-load condition is indicated by the ap_noloadb bit (bit 6) in the irqstatb register (address 0x230 and address 0x330). reverse power current channel a and current channel b are independent and, therefore, a no-load condition on current channel a affects only the energy accumulation, cf output, and reverse power of current channel a, and vice versa. the active energy no-load feature is enabled by default and can be disabled by setting bit 0 in the disnoload register (address 0x001) to 1. active energy no-load interrupt two interrupts are associated with the active energy no-load feature: one for current channel a (phase) and one for current channel b (neutral). if enabled, these interrupts are triggered when the active energy falls below the programmed threshold. the current channel a active energy no-load interrupt can be enabled by setting the ap_noloada bit (bit 6) in the irqena register (address 0x22c and address 0x32c). when this bit is set, an active energy no-load event on current channel a causes the irq pin (pin 22) to fall to 0 (see the section). primary interrupts (voltage channel and current channel a) the current channel b active energy no-load interrupt can be enabled by setting the ap_noloadb bit (bit 6) in the irqenb register (address 0x22f and address 0x32f). when this bit is set, an active energy no-load event on current channel b triggers the irq alternative output (see the section). current channel b interrupts
data sheet ade7953 rev. a | page 41 of 68 active energy no-load status bits in addition to the active energy no-load interrupt, the ade7953 includes two unlatched status bits that continually monitor the no-load status of current channel a and current channel b. the actnload_a and actnload_b bits are located in the accmode register (address 0x201 and address 0x301). these bits differ from the interrupt status bits in that they are unlatched and can, therefore, be used to drive an led. reactive energy no-load detection reactive energy no-load detection can be used in conjunction with active energy no-load detection to establish a true no-load feature. if both the reactive and active energy fall below the no-load threshold, there is no resistive, inductive, or capacitive load. the reactive energy no-load feature can also be used to prevent creep of the reactive energy when there is a resistive load present. if the reactive energy on either current channel a (phase) or current channel b (neutral) falls below the programmed thresh- old, the reactive energy on that channel ceases to accumulate in the renergya and renergyb registers, respectively. if either the cf1 or cf2 pin is programmed to output reactive energy, the cf output is disabled and held high (see the energy-to-frequency conversion section). if enabled, the reactive reverse power indi- cation holds its current state while in the no-load condition (see the reverse power section). the current channel a reactive energy no-load condition is indicated by the var_noloada bit (bit 7) in the irqstata register (address 0x22d and address 0x32d). the current channel b reactive energy no- load condition is indicated by the var_noloadb bit (bit 7) in the irqstatb register (address 0x230 and address 0x330). current channel a and current channel b are independent and, therefore, a no-load condition on current channel a affects only the energy accumulation, cf output, and reverse power of current channel a, and vice versa. the reactive energy no-load feature is enabled by default and can be disabled by setting bit 1 in the disnoload register (address 0x001) to 1. reactive energy no-load interrupt two interrupts are associated with the reactive energy no-load feature: one for current channel a (phase) and one for current channel b (neutral). if enabled, these interrupts are triggered when the reactive energy falls below the programmed threshold. the current channel a reactive energy no-load interrupt can be enabled by setting the var_noloada bit (bit 7) in the irqena register (address 0x22c and address 0x32c). when this bit is set, a reactive energy no-load event on current channel a causes the irq pin (pin 22) to fall to 0 (see the section). primary interrupts (voltage channel and current channel a) the current channel b reactive energy no-load interrupt can be enabled by setting the var_noloadb bit (bit 7) in the irqenb register (address 0x22f and address 0x32f). when this bit is set, a reactive power no-load event on current channel b triggers the irq alternative output (see the section). current channel b interrupts reactive energy no-load status bits in addition to the reactive energy no-load interrupt, the ade7953 includes two unlatched status bits that continually monitor the no-load status of current channel a and current channel b. the varnload_a and varnload_b bits are located in the accmode register (address 0x201 and address 0x301). these bits differ from the interrupt status bits in that they are unlatched and can, therefore, be used to drive an led. apparent energy no-load detection apparent energy no-load detection can be used to determine whether the total consumed energy is below the no-load thresh- old. if the apparent energy on either current channel a (phase) or current channel b (neutral) falls below the programmed threshold, the apparent energy on that channel ceases to accumulate in the apenergya and apenergyb registers, respectively. if either the cf1 or cf2 pin is programmed to output apparent energy, the cf output is disabled and held high (see the energy-to-frequency conversion section). the current channel a apparent energy no-load condition is indicated by the va_noloada bit (bit 8) in the irqstata register (address 0x22d and address 0x32d). the current channel b apparent energy no-load condition is indicated by the va_noloadb bit (bit 8) in the irqstatb register (address 0x230 and address 0x330). current channel a and current channel b are independent and, therefore, a no-load condition on current channel a affects only the energy accumulation and cf output of current channel a, and vice versa. the apparent energy no-load feature is enabled by default and can be disabled by setting bit 2 in the disnoload register (address 0x001) to 1. apparent energy no-load interrupt two interrupts are associated with the apparent energy no-load feature: one for current channel a (phase) and one for current channel b (neutral). if enabled, these interrupts are triggered when the apparent energy falls below the programmed threshold. the current channel a apparent energy no-load interrupt can be enabled by setting the va_noloada bit (bit 8) in the irqena register (address 0x22c and address 0x32c). when this bit is set, an apparent energy no-load event on current channel a causes the irq pin (pin 22) to fall to 0 (see the section). primary interrupts (voltage channel and current channel a)
ade7953 data sheet rev. a | page 42 of 68 the current channel b apparent energy no-load interrupt can be enabled by setting the va_noloadb bit (bit 8) in the irqbenb register (address 0x22f and address 0x32f). when this bit is set, an apparent energy no-load event on current channel b triggers the irq alternative output (see the section). current channel b interrupts apparent energy no-load status bits in addition to the apparent energy no-load interrupt, the ade7953 includes two unlatched status bits that continually monitor the no-load status of current channel a and current channel b. t h e va n l oa d _ a a n d va n l oa d _ b b i t s a r e l o c a t e d i n t h e accmode register (address 0x201 and address 0x301). these bits differ from the interrupt status bits in that they are unlatched and can, therefore, be used to drive an led.
data sheet ade7953 rev. a | page 43 of 68 zero-crossing detection the ade7953 includes a zero-crossing (zx) detection feature on all three input channels. zero-crossing detection allows measurements to be synchronized to the frequency of the incoming waveforms. zero-crossing detection is performed at the output of lpf1 to ensure that no harmonics or distortion affect the accuracy of the zero-crossing measurement. lpf1 is a single-pole filter with a ?3 db cutoff of 80 hz and is clocked at 223 khz. the phase shift of this filter therefore results in a time delay of approximately 2.2 ms (39.6) at 50 hz. to assure good resolution of the zx detection, lpf1 cannot be disabled. figure 61 shows how the zero-crossing signal is detected. gain[23:0] reference hpfen bit dsp hpf pga adc ia, ib, or v zx detection lpf1 ia, ib, or v 39.6 or 2.2ms @ 50hz 0v zx zx zx zx lpf1 output 09320-127 figure 61. zero-crossing detection the error in the zx detection is 0.08 for 50 hz systems and 0.09 for 60 hz systems. the zero-crossing information is available on both an output pin or via an interrupt. zero-crossing output pins by default, the voltage and current channel zx information is configured to be output on pin 1 (zx) and pin 21 (zx_i), respectively. these dedicated output pins provide an unlatched zx indicator (see the alternative output functions section). voltage channel zero crossing the voltage channel zero-crossing indicator is output on pin 1 (zx) by default. figure 62 shows the operation of the zx output. zx 2.2ms @ 50hz v 09320-131 figure 62. voltage channel zx output as shown in figure 62 , the zx output pin goes high on the positive-going edge of the voltage channel zero crossing and low on the negative-going edge of the zero crossing. a delay of approximately 2.2 ms should be expected on this pin due to the time delay of lpf1. current channel zero crossing the current channel zero-crossing indicator is output on pin 21 (zx_i) by default. the zx_i pin operates in a similar way to the zx pin (see figure 62 ). the zx_i pin goes high on the positive- going edge of the current channel zero crossing and low on the negative-going edge of the current channel zero crossing. by default, the zx_i pin is triggered based on current channel a. the zx_i pin can be configured to trigger based on current channel b by setting the zx_i bit (bit 11) of the config register (address 0x102) to 1. zero-crossing interrupts three interrupts are associated with zero-crossing detection, one for each input channel: current channel a, current channel b, and the voltage channel. the zero-crossing condition occurs when either a positive or a negative zero-crossing transition takes place. if this transition occurs on the voltage channel, the zxv bit (bit 15) of the irqstata register (address 0x22d and address 0x32d) is set to 1. if this transition occurs on current channel a, the zxia bit (bit 12) of the irqstata register is set to 1. if this transition occurs on current channel b, the zxib bit (bit 12) of the irqstatb register (address 0x230 and address 0x330) is set to 1. figure 63 shows the operation of the voltage channel zero-crossing interrupt. zxv (bit 15) of irqstata register v 09320-032 figure 63. zero-crossing interrupt as shown by the dotted line in figure 63 , the ade7953 can be configured to trigger a zero-crossing event on only the positive- going or the negative-going zero crossing. the zx_edge bits (bits[13:12]) of the config register (address 0x102) set the edge that triggers the zero-crossing event. these bits default to 00 (the zero-crossing event is triggered on both the positive- going and negative-going edges). changing the zx_edge bits affects the zero-crossing event on all three channels. note that changing the zx_edge bits affects only the zx status bits and interrupts; the function of the zx pin (pin 1) and the zx_i pin (pin 21) is not affected.
ade7953 data sheet rev. a | page 44 of 68 a zero-crossing event on any of the three input channels can be configured to trigger an external interrupt. all zero-crossing external interrupts are disabled by default. the voltage channel zero-crossing interrupt is enabled by setting the zxv bit (bit 15) in the irqena register (address 0x22c and address 0x32c). if this bit is set, a voltage channel zero-crossing event causes the irq pin to go low. the current channel a zero-crossing interrupt is enabled by setting the zxia bit (bit 12) in the irqena register (address 0x22c and address 0x32c). if this bit is set, a current channel a zero-crossing event causes the irq pin to go low. the current channel b zero-crossing interrupt is enabled by setting the zxib bit (bit 12) in the irqenb register (address 0x22f and address 0x32f). if this bit is set, a current channel b zero- crossing event causes the irq pin to go low (see the section). ade7953 interrupts zero-crossing timeout the ade7953 includes a zero-crossing timeout feature that is designed to detect when no zero crossings are obtained over a programmable time period. this feature is available on both current channels and the voltage channel and can be used to detect when the input signal has dropped out. the duration of the zero-crossing timeout is programmed in the 16-bit zxtout register (address 0x100). the same timeout duration is used for all three channels. the value in the zxtout register is decre- mented by 1 lsb every 14 khz (clkin/256). if a zero crossing is obtained, the zxtout register is reloaded. if the zxtout register reaches 0, a zero-crossing timeout event is issued. the zxtout register has a resolution of 0.07 ms (1/14 khz); there- fore, the maximum programmable timeout period is 4.58 seconds. as shown in figure 64 , a zero-crossing event causes one of the zero-crossing timeout bitszxto, zxto_ia, or zxto_ib to be set to 1. the zxto and zxto_ia bits are located in the irqstata register (address 0x22d and address 0x32d) and are set when a zero-crossing timeout event occurs on the voltage channel or on current channel a, respectively. the zxto_ib bit is located in the irqstatb register (address 0x230 and address 0x330) and is set when a zero-crossing timeout event occurs on current channel b. zxtout a ddress 0x100 input signal zxto_x 09320-033 figure 64. zero-crossing timeout three interrupts are associated with the zero-crossing timeout feature. if enabled, a zero-crossing timeout event causes the external irq pin to go low. the interrupt associated with the voltage channel zero-crossing timeout can be enabled by setting the zxto bit (bit 14) of the irqena register (address 0x22c and address 0x32c). the current channel a interrupt can be enabled by setting the zxto_ia bit (bit 11) of the irqena register (address 0x22c and address 0x32c), and the current channel b interrupt can be enabled by setting the zxto_ib bit (bit 11) of the irqenb register (address 0x22f and address 0x32f). all three interrupts are disabled by default (see the section). ade7953 interrupts zero-crossing threshold to prevent spurious zero crossings when a very small input is present, an internal threshold is included on all channels of the ade7953 . this fixed threshold is set to a range of 1250:1 of the input full scale. if any input signal falls below this level, no zero- crossing signals are produced by the ade7953 because they can be assumed to be noise. this threshold affects both the external zero-crossing pins, zx (pin 1) and zx_i (pin 21), as well as the zero-crossing interrupt function. at inputs of lower than 1250:1 of the full scale, the zero-crossing timeout signal continues to function and issues an event according to the time duration programmed in the zxtout register (address 0x100).
data sheet ade7953 rev. a | page 45 of 68 voltage sag detection the ade7953 includes a sag detection feature that warns the user when the absolute value of the line voltage falls below the programmable threshold for a programmable number of line cycles. this feature can provide an early warning signal that the line voltage is dropping out. the voltage sag feature is controlled by two registers: sagcyc (address 0x000) and saglvl (address 0x200 and address 0x300). these registers control the sag period and the sag voltage threshold, respectively. sag detection is disabled by default and can be enabled by writing a nonzero value to both the sagcyc and saglvl registers. if either register is set to 0, the sag feature is disabled. if a voltage sag condition occurs, the sag bit (bit 19) in the irqstata register (address 0x22d and address 0x32d) and in the rstirqstata register (address 0x22e and address 0x32e) is set to 1. setting the sagcyc register the 8-bit, unsigned sagcyc register contains the program- mable sag period. the sag period is the number of half line cycles below which the voltage channel must remain before a sag condition occurs. each lsb of the sagcyc register corresponds to one half line cycle period. the sagcyc register holds a maximum value of 255. at 50 hz, the maximum sag cycle time is 2.55 seconds. sec55.22552 50 1 = ? ? ? ? ? ? at 60 hz, the maximum sag cycle time is 2.125 seconds. sec125.22552 60 1 = ? ? ? ? ? ? if the sagcyc value is modified after the feature is enabled, the new sagcyc period is effective immediately. therefore, it is possible for a sag event to be caused by a combination of sag cycle periods. to prevent any overlap, the saglvl register should be reset to 0 to effectively disable the feature before the new cycle value is written to the sagcyc register. setting the saglvl register the 24-bit/32-bit saglvl register contains the amplitude that the voltage channel must fall below before a sag event occurs. each lsb of this register maps exactly to the voltage channel peak register; therefore, the amplitude can be set based on the peak reading of the voltage channel. to set the saglvl register, nominal voltage should be applied and a reading taken from the rstvpeak register (address 0x227 and address 0x327) to reset the peak level reading. after a wait period of a few line cycles, the vpeak register (address 0x226 and address 0x326) should be read to determine the voltage input. this reading should then be scaled to the amplitude required for sag detection. for example, if a sag threshold of 80% of the nominal voltage is required, the peak reading should be taken and a value of 80% of this reading should be written to the saglvl register. this method ensures that an accurate saglvl value is obtained for the particular design. voltage sag interrupt the ade7953 includes an interrupt that is associated with the voltage sag detection feature. if this interrupt is enabled, a voltage sag event causes the external irq pin to go low. this interrupt is disabled by default and can be enabled by setting the sag bit (bit 19) in the irqena register (address 0x22c and address 0x32c). see the section. ade7953 interrupts
ade7953 data sheet rev. a | page 46 of 68 peak detection the ade7953 includes a peak detection feature on both current channel a (phase) and current channel b (neutral) and on the voltage channel. this feature continuously records the maximum value of the voltage and current waveforms. peak detection can be used with overvoltage and overcurrent detection to provide a complete swell detection function (see the overcurrent and overvoltage detection section). peak detection is an instantaneous measurement taken from the absolute value of the current and voltage adc output waveforms and stored in three 24-bit/32-bit registers. the three registers that record the peak values on current channel a, current channel b, and the voltage channel, respectively, are iapeak (address 0x228 and address 0x328), ibpeak (address 0x22a and address 0x32a), and vpeak (address 0x226 and address 0x326). these three registers are updated every time that the absolute value of the waveform exceeds the current value stored in the iapeak, ibpeak, and vpeak registers. no time period is associated with this measurement. three additional registers contain the same peak information, but cause the corresponding peak measurements to be reset after they are read. the three read-with-reset peak registers are rstiapeak (address 0x229 and address 0x329), rstibpeak (address 0x22b and address 0x32b), and rstvpeak (address 0x227 and address 0x327). reading these registers clears the contents of the corresponding xpeak register.
data sheet ade7953 rev. a | page 47 of 68 indication of power direction the ade7953 includes sign indication on the active and reactive energy measurements. sign indication allows positive and nega- tive energy to be identified and billed separately if required. it also helps detect a miswiring condition. this feature is available on both current channel a and current channel b. power direction information is available on both a dedicated output pin ( revp ) and via a set of internal registers and interrupts (see the section and the section). reverse power sign indication reverse power the revp pin (pin 20) on the ade7953 provides a reverse power indicator. this pin can be configured to provide polarity information about the active or reactive power on current channel a or current channel b. the revp output is high by default and goes low if the angle between the voltage and current input is greater than 90. revp is unlatched and, therefore, returns high when the reverse power condition is no longer true. changes to the revp output pin occur synchronously to the falling edge of the cf1 pin by default (see ). figure 65 the measurement and channel indicated by the revp pin are selected by the configuration of the cf output. by default, the revp pin is configured to output synchronous to cf1 and represents the measurement selected on cf1 using the cf1sel bits in the cfmode register (address 0x107). by default, this measurement is the active power on current channel a. if the cf1sel bits are set to 0x0001, the revp pin indicates the polarity of the reactive power on current channel a. the revp indicator can be configured to output based on cf2 by setting the revp_cf bit in the config register (address 0x102). in this configura- tion, the cf2sel bits in the cfmode register determine the measurement represented on the revp output. if the selected cf pin is configured to output another measurement, such as apparent power or irms, the revp output is disabled. to improve the visibility of a reverse polarity condition if an led light is used, a 1 hz pulse mode is available on the revp pin. in this mode, the revp output pin is low by default and outputs a 1 hz pulse if the reverse polarity condition is true. this pulse has a 50% duty cycle. similar to normal mode, this mode is also unlatched, and the revp output returns high when the reverse polarity is no longer true. to enable the revp pulse mode, the revp_pulse bit in the config register (address 0x102) should be set to 1. the revp output pin is disabled in the corresponding no-load condition. for example, if the reverse polarity information for current channel a active power is present on the revp pin and the active energy on current channel a is in the no-load condition, the revp output is disabled and held in its current state. sign indication the ade7953 includes four sign indication bits that indicate the polarity of the active power on current channel a (apsign_a), the active power on current channel b (apsign_b), the reactive power on current channel a (varsign_a), and the reactive power on current channel b (varsign_b). these bits are located in the accmode register (address 0x201 and address 0x301). all four bits are unlatched and read only. a low reading (0) on any of these bits indicates that the correspond-ing power reading is positive; a high reading (1) indicates that the corresponding power reading is negative. these bits are enabled by default and are disabled in the corresponding no-load condition. in addition to the sign indication bits, the ade7953 also includes four sign indication interrupts. if enabled, these interrupts cause the irq pin to go low when the polarity of the power changes. the interrupts are triggered on both positive-to-negative and negative-to-positive polarity changes. these interrupts are dis- abled by default and can be enabled by setting the apsign_a and varsign_a bits in the irqena register (address 0x22c and address 0x32c), and the apsign_b and varsign_b bits in the irqenb register (address 0x22f and address 0x32f). see the section. ade7953 interrupts note that in absolute or positive-only accumulation mode, these bits are fixed at 0. see the active energy accumulation modes section and the reactive energy accumulation modes section. cf1 enter reverse condition revp current and voltage inputs exit reverse condition revp high 09320-034 revp low figure 65. revp output
ade7953 data sheet rev. a | page 48 of 68 overcurrent and overvoltage detection the ade7953 provides an overcurrent and overvoltage feature that detects whether the absolute value of the current or voltage waveform exceeds a programmable threshold. this feature uses the instantaneous voltage and current signals. the two registers associated with this feature, ovlvl (address 0x224 and address 0x324) and oilvl (address 0x225 and address 0x325), are used to set the voltage and current channel thresholds, respec- tively. the oilvl threshold register determines the threshold for both the current channel a and current channel b over- current features. the same threshold must therefore be used for both current channel a and current channel b. the default value of the ovlvl and oilvl registers is 0xffffff, which effectively disables the feature. figure 66 shows the operation of the overvoltage detection feature. ov reset low when rstirqstata register is read ovlvl v ov (bit 16) of irqstata register 09320-035 figure 66. overvoltage detection as shown in figure 66 , if the ade7953 detects an overvoltage condition, the ov bit (bit 16) of the irqstata register (address 0x22d and address 0x32d) is set to 1. this bit can be cleared by reading the rstirqstata register (address 0x22e and address 0x32e). the overcurrent detection feature works in a similar manner (see figure 67 ). 09320-036 oia reset low when rstirqstata register is read oilvl ia oia (bit 13) of irqstata register oilvl ib oib (bit 13) of irqstatb register oib reset low when rstirqstatb register is read figure 67. overcurrent detection as shown in figure 67 , if an overcurrent condition is detected on current channel a, the oia bit (bit 13) of the irqstata register is set to 1. this bit can be cleared by reading from the rstirqstata register. if an overcurrent condition is detected on current channel b, the oib bit (bit 13) of the irqstatb register (address 0x230 and address 0x330) is set to 1. this bit can be cleared by reading from the rstirqstatb register (address 0x231 and address 0x331). setting the ovlvl and oilvl registers the 24-bit/32-bit unsigned ovlvl and oilvl registers map directly to the vpeak (address 0x226 and address 0x326) and iapeak (address 0x228 and address 0x328) registers, respectively (see the peak detection section). note that after gain calibration, current channel a and current channel b are matched and, therefore, the iapeak and ibpeak registers are matched with common inputs. the settings of the ovlvl and oilvl registers should be based on the vpeak and iapeak readings with full-scale inputs. to set the ovlvl register, the maximum voltage input should be applied and a reading taken from the rstvpeak register (address 0x227 and address 0x327). this resets the voltage peak reading. after a wait period of a few line cycles, the vpeak register (address 0x226 and address 0x326) should be read to determine the voltage peak. this reading should then be scaled to the amplitude required for overvoltage detection. for example, if an overvoltage threshold of 120% of the maximum voltage is required, the peak reading should be multiplied by 1.2 and the resulting value written to the ovlvl register. this method ensures that an accurate threshold is set for each individual design. overvoltage and overcurrent interrupts three interrupts are associated with the overvoltage and overcurrent features. the first interrupt is associated with the overvoltage feature; it is enabled by setting the ov bit (bit 16) of the irqena register (address 0x22c and address 0x32c). when this bit is set, an overvoltage condition causes the external irq pin to be pulled low. a second interrupt is associated with the overcurrent detection feature on current channel a. this interrupt is enabled by setting the oia bit (bit 13) of the irqena register. when this bit is set, an overcurrent condition on current channel a causes the external irq pin to be pulled low. the third interrupt is associated with the overcurrent detection feature on current channel b. this interrupt is enabled by setting the oib bit (bit 13) of the irqenb register (address 0x22f and address 0x32f). when this bit is set, an overcurrent condition on current channel b causes the irq alternative output to be triggered, if the alternative output is enabled (see the section). current channel b interrupts
data sheet ade7953 rev. a | page 49 of 68 alternative output functions the ade7953 includes three output pins that are configured by default to output power quality information. ? pin 1 (zx) provides a voltage channel zero-crossing signal, as described in the voltage channel zero crossing section. ? pin 21 (zx_i) provides a current channel zero-crossing signal, as described in the current channel zero crossing section. ? pin 20 ( revp ) provides polarity information, as described in the section. reverse power to provide flexibility and to accommodate a variety of design requirements, the ade7953 can be configured to output a variety of alternative power quality signals on any of these three outputs. alternative functions are configured using the alt_output register (address 0x110). table 8 summarizes the functions that can be output on pin 1, pin 21, and pin 20. note that the default functions of zx, zx_i, and revp can be configured to output on any one of pin 1, pin 21, or pin 20. as described in table 8 , the description of each function can be found in the corresponding section of this data sheet. if an alter- native output function is enabled on pin 1, pin 21, or pin 20, the function can be configured and will be performed as described in the corresponding section. the alternative function will, how- ever, appear as an unlatched output on pin 1, pin 21, or pin 20. to enable an alternative function, the zx_alt, zxi_alt, and revp_alt bits in the alt_output register must be set. the interrupt enable associated with the alternative output does not need to be enabled in order for it to be present on pin 1, pin 21, or pin 20. enabling an alternative output does not affect the primary function of the feature. table 8. alternative outputs function see this section zero-crossing detection (voltage channel) voltage channel zero crossing zero-crossing detection (current channels) current channel zero crossing reverse power indication reverse power voltage sag detection voltage sag detection active energy no-load detection (current channel a) active energy no-load detection active energy no-load detection (current channel b) active energy no-load detection reactive energy no-load detection (current channel a) reactive energy no-load detection reactive energy no-load detection (current channel b) reactive energy no-load detection waveform sampling, data ready instantaneous powers and waveform sampling interrupt output (current channel b) current channel b interrupts
ade7953 data sheet rev. a | page 50 of 68 ade7953 interrupts the ade7953 interrupts are separated into two groups. the first group of interrupts is associated with the voltage channel and current channel a. the second group of interrupts is associated with current channel b. see tabl e 22 and table 24 for a list of the interrupts. all interrupts are disabled by default with the exception of the reset interrupt that is located within the group of primary interrupts. this interrupt is enabled by default and signals the end of a software or hardware reset. on power-up, this interrupt is triggered to signal that the ade7953 is ready to receive communication from the microcontroller. this interrupt should be serviced as described in the primary interrupts (voltage channel and current channel a) section prior to configuring the ade7953 . primary interrupts (voltage channel and current channel a) the primary interrupts are events that occur on the voltage channel and current channel a. these interrupts are handled by a group of three registers: the enable register, irqena (address 0x22c and address 0x32c), the status register, irqstata (address 0x22d and address 0x32d), and the reset status register, rstirqstata (address 0x22e and address 0x32e). the bits in these registers are described in table 22 and table 23 . when an interrupt event occurs, the corresponding bit in the irqstata register is set to 1. if the enable bit for this interrupt, located in the irqena register, is set to 1, the external irq pin is pulled to logic 0. the status bits located in the irqstata register are set when an interrupt event occurs, regardless of whether the external interrupt is enabled. all interrupts are latched and require servicing to clear. to service the interrupt and return the irq pin to logic 1, the status bits must be cleared using the rstirqstata register (address 0x22e and address 0x32e). the rstirqstata register contains the same interrupt status bits as the irqstata register, but when the rstirqstata register is accessed, a read- with-reset command is executed, clearing the status bits. after completion of a read from this register, all status bits are cleared to 0 and the irq pin returns to logic 1. current channel b interrupts the current channel b interrupts are events that occur on current channel b. like the primary group of interrupts, current channel b interrupts are handled by a group of three registers: the enable register, irqenb (address 0x22f and address 0x32f), the status register, irqstatb (address 0x230 and address 0x330), and the reset status register, rstirqstatb (address 0x231 and address 0x331). the bits in these registers are described in table 24 and table 25 . when an interrupt event occurs, the corresponding bit in the irqstatb register is set to 1. the current channel b interrupts do not have a dedicated output pin. this function can be configured as an alternative output on pin 1 (zx), pin 21 (zx_i), or pin 20 ( revp ) (see the section). if an output is enabled for interrupt events on current channel b and the interrupt enable bit, located in the irqenb register, is set to 1, pin 1, pin 21, or pin 20 is pulled low if an interrupt event occurs on current channel b. the status bits located in the irqstatb register are set when an interrupt event occurs, regardless of whether an external interrupt output is enabled. alternative output functions all interrupts are latched and require servicing to clear. to service the interrupt, the status bits must be cleared using the rstirqstatb register (address 0x231 and address 0x331). the rstirqstatb register contains the same interrupt status bits as the irqstatb register, but when the rstirqstatb register is accessed, a read-with-reset command is executed, clearing the status bits. after completion of a read from this register, all status bits are cleared to 0 and the appropriate output pin (if enabled) returns to logic 1.
data sheet ade7953 rev. a | page 51 of 68 communicating with the ade7953 a ll ade7953 features can be accessed via a group of on-chip registers. for a detailed list of all the registers, see the ade7953 registers section. three different communication interfaces can be used to access the on-chip registers. ? 4-pin spi interface ? 2-pin bidirectional i 2 c interface ? 2-pin uart interface all three communication options use the same group of pins and, therefore, only one method of communication should be used in each design. communication autodetection the ade7953 contains a detection system that automatically detects which of the three communication interfaces is being used. this feature allows communication to be quickly estab- lished with minimal initialization. autodetection works by monitoring the status of the four communication pins and automatically selecting the communication interface that matches the configuration (see table 9 ). ? the cs pin (pin 28) is used to determine whether the communication method is spi. if this pin is held low, the communication interface is set to spi. ? the sclk pin (pin 25) is used to determine whether the communication method is i 2 c or uart. if this pin is held high, the communication interface is set to i 2 c; if it is held low, the communication interface is set to uart. therefore, although pin 25 (sclk) and pin 28 (cs) are not required if communicating via i 2 c or uart, these pins should be configured in hardware as shown in table 9 to ensure the functionality of the autodetection system. locking the communication interface after the selected communication interface is established, the interface should be locked to prevent the communication method from inadvertently changing. the ade7953 can be configured to lock automatically after the first successful communication. the automatic lock feature is disabled by default and is enabled by clearing the comm_lock bit (bit 15) in the config register (address 0x102). to successfully establish and lock the communication interface, a write should be issued shortly after power-up to the config register, clearing the comm_lock bit and thus locking the communication interface. when the communication interface is locked to a specific method (that is, spi, i 2 c, or uart), the communication method cannot be changed without resetting the ade7953 . note that if using the spi communication interface to lock the communication mode, the cs pin must be held low for a minimum of 1.2 s after the last sclk. this delay is required only when writing to the comm_lock bit (see the spi interface timing section). table 9. communication autodetection communication interface pin 28 (cs) pin 25 (sclk) pin 27 (mosi/scl/rx) pin 26 (miso/sda/tx) spi 0 dont care mosi miso i 2 c 1 1 scl sda uart 1 0 rx tx
ade7953 data sheet rev. a | page 52 of 68 spi interface the serial peripheral interface (spi) uses all four communica- tion pins: cs, sclk, mosi, and miso. the spi communication operates in slave mode and, therefore, a clock must be provided on the sclk pin (mosi is an input, and miso is an output). this clock synchronizes all communications and can operate up to a maximum speed of 5 mhz. see the spi interface timing section for more information about the communication timing requirements. the mosi pin is an input to the ade7953 ; data is shifted in on the falling edge of sclk to be sampled by the ade7953 on the rising edge. the miso pin is an output from the ade7953 ; data is shifted out on the falling edge of sclk and should be sampled by the external microcontroller on the rising edge. the spi communication packet consists of two initial bytes that contain the address of the register that is to be read from or written to. this address should be transmitted msb first. the third byte of the communication determines whether a read or a write is being issued. the most significant bit of this byte should be set to 1 for a read operation and to 0 for a write operation. when the third byte transmission is complete, the register data is either sent from the ade7953 on the miso pin (in the case of a read) or is written to the ade7953 mosi pin by the external microcontroller (in the case of a write). all data is sent or received msb first. the length of the data transfer depends on the width of the register being accessed. registers can be 8, 16, 24, or 32 bits long. figure 68 and figure 69 show the data transfer sequence for an spi read and an spi write, respectively. as shown in these figures, the cs (chip select) input must be driven low to initialize the communication and driven high at the end of the communi- cation. bringing the cs input high before the completion of a data transfer ends the communication. in this way, the cs input performs a reset function on the spi communication. the cs input allows communication with multiple devices on the same microcontroller spi port. 1 0 15 14 sclk mosi miso 10 31 30 1 0 0 0 0 000 register value register address cs 09320-062 figure 68. spi read sclk mosi 31 30 1 0 register value cs 09320-063 00 15 14 1 0 0 00000 register address figure 69. spi write
data sheet ade7953 rev. a | page 53 of 68 i 2 c interface the ade7953 supports a fully licensed i 2 c interface. the i 2 c interface operates as a slave and uses two shared pins: sda and scl. the sda pin is a bidirectional input/output pin, and the scl pin is the serial clock. both pins are shared with the spi and uart interfaces. the i 2 c interface operates at a maximum serial clock frequency of 400 khz. the two pins used for data transfersda and sclare configured in a wire-and format that allows arbitration in a multimaster system. communication via the i 2 c interface is initiated by the master device generating a start condition. this consists of the master transmitting a single byte containing the address of the slave device and the nature of the operation (read or write). the address of the ade7953 is 0111000x. bit 7 in the address byte indicates whether a read or a write is required: 0 indicates a write, and 1 indicates a read. the communication continues as described in the following sections until the master issues a stop condition and the bus returns to the idle condition. i 2 c write operations a write operation on the ade7953 is initiated when the master issues a start condition, which consists of the slave address and the read/write bit. the start condition is followed by the 16-bit address of the target register. after each byte is received, the ade7953 issues an acknowledge (ack) to the master. as soon as the 16-bit address communication is complete, the master sends the register data, msb first. the length of this data can be 8, 16, 24, or 32 bits long. after each byte of register data is received, the ade7953 slave issues an acknowledge (ack). when transmission of the final byte is complete, the master issues a stop condition, and the bus returns to the idle condition. the i 2 c write operation is shown in figure 70 . 09320-059 ack generated by ade7953 start stop s a c k a c k a c k a c k a c k a c k a c k p 0 15 slave address msb of register address lsb of register address byte 3 (msb) of register byte 2 of register byte 1 of register byte 0 (lsb) of register 87 023 1615 87 0 0 7 1110000 read/write figure 70. i 2 c write
ade7953 data sheet rev. a | page 54 of 68 i 2 c read operations the i 2 c read operation is performed in two stages. the first stage sets the pointer to the address of the register to be accessed. the second stage reads the contents of the register. as shown in figure 71 , the first stage is initiated when the master issues a start condition, which consists of the slave address and the read/write bit. because this first step sets up the pointer to the address, the lsb of the start byte should be set to 0 (write). the start condition is followed by the 16-bit address of the target register. after each byte is received, the ade7953 issues an acknowledge (ack) to the master. the second stage of the read operation begins with the master generating a new start condition. this start condition consists of the same slave address but with the lsb set to 1 to signify that a read is being issued. after this byte is received, the ade7953 issues an acknowledge (ack). the ade7953 then sends the register contents to the master, which acknowledges the reception of each byte. all bytes are sent msb first. the register contents can be 8, 16, 24, or 32 bits long. after the final byte of register data is received, the master issues a stop condition in place of the acknowledge to indicate the completion of the communication. the i 2 c read operation is shown in figure 71 . ack generated by ade7953 ack generated by master star t s a c k a c k a c k 0 15 slave address msb of register address lsb of register address 87 0 1110000 start stop s a c k a c k a c k a c k p 0 slave address byte 3 (msb) of register byte 2 of register byte 1 of register byte 0 (lsb) of register 23 16 15 8 7 0 0 7 1110001 ack generated by ade7953 09320-060 read/write read/write figure 71. i 2 c read
data sheet ade7953 rev. a | page 55 of 68 uart interface the ade7953 provides a simple universal asynchronous receiver/transmitter (uart) interface that allows all the functions of the ade7953 to be accessed using only two single-direction pins. the uart interface allows an isolated communication interface to be achieved using only two low cost opto-isolators. the uart interface operates at a fixed baud rate of 4800 bps and is therefore suitable for low speed designs. the uart interface on the ade7953 is accessed via the tx pin (pin 26), which transmits data from the ade7953 , and the rx pin (pin 27), which receives data from the microcontroller. a simple master/slave topology is implemented on the uart inter- face with the ade7953 acting as the slave. all communication is initiated by the sending of a valid frame by the master (the microcontroller) to the slave (the ade7953 ). the format of the frame is shown in figure 72 . as shown in figure 72 , each frame consists of 10 bits. each bit is sent at a bit rate of 4800 bps, resulting in a frame time of 2.08 ms ((1/4800) 10). a wait period of 6 ms should be added from when the uart communication mode is established using the cs and sclk pins to when the first frame is sent. a minimum wait of 0.2 ms should be included between frames. all frame data is sent lsb first. communication via the uart interface is initiated by the master sending a packet of three frames (see table 10 ). table 10. frames in the uart packet frame function f1 read/write f2 address msb f3 address lsb f1 determines whether the communication is a read or a write operation, and the following two frames (f2 and f3) select the register that is to be accessed. each frame consists of eight data bits, as shown in figure 72 . a read is issued by writing the value 0x35 to f1, and a write is issued by writing the value 0xca to f1. any other value is interpreted as invalid and results in an unsuccessful communication with the ade7953 . the address bytes are sent msb first; therefore, f2 contains the most significant portion of the address, and f3 contains the least significant portion of the address. the bits within each address frame are sent lsb first. the ade7953 uart interface uses two timeouts, t 1 and t 2 , to synchronize the communication and to prevent the communi- cation from halting. the first timeout, t 1 , is the frame-to-frame delay and is fixed at 4 ms max. the second timeout, t 2 , is the packet-to-packet delay and is fixed at 6 ms min. these two timeouts act as a reset for the uart function. more informa- tion about how the timeouts are implemented is provided in the uart read section and the uart write section. verification of a successful uart communication can be achieved by implementing a write/read/verify sequence in the microcontroller. successful communications are also recorded in the last_add, last_rwdata, and last_op registers, as described in the communication verification section. sclk cs start start stop d0 d0 d1 d2 d3 frame d4 d5 d6 d7 rx t 1 t 2 t 2 = packet delay: 6ms (min) t 1 = frame delay: 0.2ms (min), 4ms (max) 0 9320-141 figure 72. uart frame
ade7953 data sheet rev. a | page 56 of 68 uart read a read from the ade7953 via the uart interface is initiated by the master sending a packet of three frames. if the first frame has the value 0x35, a read is being issued. the second and third frames contain the address of the register being accessed. when the ade7953 receives a legal packet, it decodes the command (see figure 73 ). the frame time is 2.08 ms. a frame-to-frame delay (t 1 ) of 4 ms max provides a 50% buffer on the frame time without needlessly slowing the communication. when the read packet is decoded, the ade7953 sends the data from the selected register out on the tx pin (see f4 and f5 in figure 73 ). this occurs approximately 0.1 ms after the complete frame is received. this data can be 1, 2, 3, or 4 bytes long, depending on the size of the register that is being accessed. the register data is sent lsb first. after the last frame of register data is sent from the ade7953 , a packet-to- packet delay (t 2 ) of 6 ms min is required before any incoming data on the rx pin is accepted. this packet-to-packet timeout ensures that no overlap is possible. uart write a write to the ade7953 via the uart interface is initiated by the master sending a packet of three frames. if the first frame has the value 0xca, a write is being issued. the second and third frames contain the address of the register being accessed. the next two frames contain the data to be written. when the ade7953 receives a legal packet, it decodes the command as follows: ? if the number of frames obtained after the initial packet is the same as the size of the register specified by f2 and f3, the packet is legal and the corresponding register is written. ? if the number of frames does not equal the size of the specified register, the command is illegal and no further action is taken. after the last frame of data is received on the rx pin, a wait period of t 2 is required before any incoming data on the rx pin is treated as a new packet. this operation is shown in figure 74 . f1 read/ write rx tx f2 address msb f3 address lsb t 1 f1 read/ write f2 address msb t 1 t 1 f4 data lsb f5 data msb t 1 t 2 t 1 09320-142 figure 73. uart read f1 read/ write rx tx f2 address msb f3 address lsb t 1 f1 read/ write f2 address msb t 1 t 1 f4 data lsb f5 data msb t 1 t 2 t 1 09320-143 figure 74. uart write
data sheet ade7953 rev. a | page 57 of 68 communication verification and security the ade7953 includes three security measures to increase communication robustness and to help prevent inadvertent modifications to its internal registers. the write protection, communication verification, and checksum features can be used together to help increase the robustness and noise immunity of the meter design. write protection the ade7953 provides a simple method for protecting the internal registers from unexpected write operations. this feature helps to prevent noise or emc conditions from changing the required meter configuration. the write protection feature is disabled by default to allow the meter to be configured and can be enabled by writing to the 8-bit write_protect register (address 0x040). only the three lsbs of this register are used. bit 0 controls the protection on the 8-bit registers; bit 1 controls the protection on the 16-bit registers; bit 2 controls the protection on the 24-bit/32-bit registers. all bits are set to 0 by default to disable the protection. setting any of these bits to 1 enables write protection on the corresponding group of registers. when write protection is enabled, any attempted write operation using the spi, i 2 c, or uart interface is ignored. the one exception to this is the write_protect regist er that can still be modified to disable the write protection feature. resetting the write_ protect bits to 0 reinstates full access to the register banks. communication verification the ade7953 includes a set of three registers that allow any communication via spi, i 2 c, or uart to be verified. the last_op (address 0x0fd), last_add (address 0x1fe), and last_rwdata registers record the type, address, and data of the last successful communication, respectively. the last_rwdata register has four separate addresses, depending on the length of the successful communication (see table 11 ). multiple address locations are included to prevent unnecessarily long communications. table 11. addresses of the last_rwdata registers register address length of read/write address 0x0ff 8 bits address 0x1ff 16 bits address 0x2ff 24 bits address 0x3ff 32 bits after each successful communication with the ade7953 , the address of the last register that was accessed is stored in the 16-bit last_add register (address 0x1fe). this read-only register stores the value until the next successful read or write is complete. the last_op register (address 0x0fd) stores the type of the communication, that is, it indicates whether a read or a write was performed. if the last operation was a write, the last_op register stores the value 0xca. if the last operation was a read, the last_op register stores the value 0x35. the last_rwdata register stores the data that was written to or read from the register. unsuccessful read and write operations are not reflected in these registers.
ade7953 data sheet rev. a | page 58 of 68 checksum register the ade7953 includes a 32-bit checksum register, crc (address 0x37f), which warns the user if any of the important configuration, control, or calibration registers are modified. the checksum register helps to ensure that the meter configuration is not modified from its desired state during normal operation. table 12 lists the registers included in the checksum. an additional eight internal reserved registers are also included in the checksum. the ade7953 computes the cyclic redundancy check (crc) based on the ieee 802.3 standard. the contents of the registers are introduced one by one into a linear feedback shift register (lfsr) based generator, starting with the least significant bit. the 32-bit result is written to the crc register. figure 75 shows how the lfsr works. the registers shown in table 12 and the eight 8-bit reserved internal registers form the bits [a 1023 , a 1022 ,, a 0 ] used by lfsr. bit a 0 is the least significant bit of the first register to enter lfsr; bit a 1023 is the most signifi- cant bit of the last register to enter lfsr. the formulas that govern lfsr are as follows: b i (0) = 1, i = 0, 1, 2, , 31, the initial state of the bits that form the crc. bit b 0 is the least significant bit, and bit b 31 is the most significant. b i (0) = 1, i = 0, 1, 2, , 31, the initial state of the bits that form the crc. bit b 0 is the least significant bit, and bit b 31 is the most significant. g i , i = 0, 1, 2, , 31 are the coefficients of the generating polynomial defined by the i eee802.3 standard as follows: g ( x) = x 32 + x 26 + x 23 + x 22 + x 16 + x 12 + x 11 + x 10 + x 8 + x 7 + x 5 + x 4 + x 2 + x + 1. g 0 = g 1 = g 2 = g 4 = g 5 = g 7 = 1 g 8 = g 10 = g 11 = g 12 = g 16 = g 22 = g 26 = g 31 = 1 (50) all of the other g i coefficients are equal to 0. fb ( j ) = a j C 1 xor b 31 ( j C 1) (51) b 0 ( j ) = fb ( j ) and g 0 (52) b i (j) = fb ( j ) and g i xor b i ? 1 ( j C 1), i = 1, 2, 3, ..., 31 (53) equation 51, equation 52, and equation 53 must be repeated for j = 1, 2, , 1024. the value written into the checksum register contains the bit b i (1024) , i = 0, 1, , 31. 1023 0 lfsr generator 09320-075 array of 1024 bits figure 75. checksum register calculation b 0 lfsr fb g 0 g 1 g 2 g 31 b 1 g 3 b 2 b 31 a 255 , a 254 ,...., a 2 , a 1 , a 0 09320-076 figure 76. lfsr generator used in checksum register calculation the crc is disabled by default and can be enabled by setting the crc_enable bit (bit 8) of the config register (address 0x102). when this bit is set, the crc is computed at a rate of 6.99 khz. because the crc is disabled by default, the default value is 0xffffffff. once enabled, with all registers at their default value, the crc is 0x48739163.the checksum can be used to ensure that the registers included in the checksum are not inadvertently changed by periodically reading the value in the crc register (address 0x37f) after the meter is configured. if two consecutive readings differ, it can be assumed that one of the registers has changed value and, therefore, the configuration of the ade7953 has changed. note that since the crc updates at a rate of 6.99 khz, consecutive reads should be at least 143 s (1/6.99 khz) apart. the recommended response is to issue a hardware/software reset, which resets all ade7953 registers, including reserved registers, to their default values. the ade7953 should then be reconfigur ed with the design-specific settings. an interrupt associated with the checksum feature can provide an external warning signal on the irq pin if the crc register value changes after initial configuration. this interrupt is dis- abled by default and can be enabled by setting the crc bit (bit 21) in the irqena register (address 0x22c and address 0x32c). when this interrupt is enabled, an external interrupt is issued if the crc value changes from the value that it held at the time that it was enabled.
data sheet ade7953 rev. a | page 59 of 68 table 12. registers included in the checksum configuration and control registers calibration registers register name address register name address lcycmode 0x004 aigain 0x280 and 0x380 pga_v 0x007 vgain 0x281 and 0x381 pga_ia 0x008 awgain 0x282 and 0x382 pga_ib 0x009 avargain 0x283 and 0x383 config 0x102 avagain 0x284 and 0x384 cf1den 0x103 aios 0x285 and 0x385 cf2den 0x104 airmsos 0x286 and 0x386 cfmode 0x107 vos 0x287 and 0x387 phcala 0x108 vrmsos 0x288 and 0x388 phcalb 0x109 awattos 0x289 and 0x389 alt_output 0x110 avaros 0x28a and 0x38a accmode 0x201 and 0x301 avaos 0x28b and 0x38b irqena 0x22c and 0x32c bigain 0x28c and 0x38c irqenb 0x22f and 0x32f reserved 0x28d and 0x38d bwgain 0x28e and 0x38e bvargain 0x28f and 0x38f bvagain 0x290 and 0x390 bios 0x291 and 0x391 birmsos 0x292 and 0x392 reserved 0x293 and 0x393 reserved 0x294 and 0x394 bwattos 0x295 and 0x395 bvaros 0x296 and 0x396 bvaos 0x297 and 0x397
ade7953 data sheet rev. a | page 60 of 68 ade7953 registers the ade7953 contains registers that are 8, 16, 24, and 32 bits long. all signed registers are in the twos complement format with the exception of the phcala and phcalb registers, which are in sign magnitude format. the 24-bit and 32-bit registers contain the s ame data but can be accessed in two different register lengths. the 24-bit register option increases communication speed; the 32-bit register option provides simplicity when coding with the long format. wh en accessing the 32-bit registers, only the lower 24 bits contai n valid data (the upper 8 bits are sign extended). a write to a 24-bit register changes the value in the corresponding 32-bit register, and vice versa. therefore, each 24-bit/32-bit register can be thought of as one memory location that can be accessed via two different paths. table 13. 8-bit registers address register name r/w default type register description 0x000 sagcyc r/w 0x00 unsigned sag line cycles 0x001 disnoload r/w 0x00 unsigned no-load detection disable 0x004 lcycmode r/w 0x40 unsigned line cycle accumulation mode configuration 0x007 pga_v r/w 0x00 unsigned voltage ch annel gain configuration (bits[2:0]) 0x008 pga_ia r/w 0x00 unsigned current ch annel a gain configuration (bits[2:0]) 0x009 pga_ib r/w 0x00 unsigned current ch annel b gain configuration (bits[2:0]) 0x040 write_protect r/w 0x00 unsigned write protection bits (bits[2:0]) 0x0fd last_op r 0x00 unsigned contains the type (read or write) of the last successful communication (0x35 = read; 0xca = write) 0x0ff last_rwdata r 0x00 unsigned contains the data fr om the last successful 8-bit register communication 0x702 version r n/a unsigned contains the silicon version number 0x800 ex_ref r/w 0x00 unsigned reference input configurat ion: set to 0 for internal; set to 1 for external table 14. 16-bit registers address register name r/w default type register description 0x100 zxtout r/w 0xffff unsigned zero-crossing timeout 0x101 linecyc r/w 0x0000 unsigned number of half line cycles for line cycle energy accumulation mode 0x102 config r/w 0x8004 unsigned configuration register 0x103 cf1den r/w 0x003f unsigned cf1 frequency divider denominator. when modifying this register, two sequential write operations must be performed to ensure that the write is successful. 0x104 cf2den r/w 0x003f unsigned cf2 frequency divider denominator. when modifying this register, two sequential write operations must be performed to ensure that the write is successful. 0x107 cfmode r/w 0x0300 unsigned cf output selection 0x108 phcala r/w 0x0000 signed phase calibration register (current channel a). this register is in sign magnitude format. 0x109 phcalb r/w 0x0000 signed phase calibration register (current channel b). this register is in sign magnitude format. 0x10a pfa r 0x0000 signed power factor (current channel a) 0x10b pfb r 0x0000 signed power factor (current channel b) 0x10c angle_a r 0x0000 signed angle between the voltage input and the current channel a input 0x10d angle_b r 0x0000 signed angle between the voltage input and the current channel b input 0x10e period r 0x0000 unsigned period register 0x110 alt_output r/w 0x0000 unsigned alternative output functions 0x1fe last_add r 0x0000 unsigned contains the ad dress of the last successful communication 0x1ff last_rwdata r 0x0000 unsigned contains the data fr om the last successful 16-bit register communication 0x120 reserved r/w 0x0000 unsigned this register should be set to 30h to meet the performance specified in table 1 . to modify this register, it must be unlocked by setting register address 0xfe to 0xad immediately prior.
data sheet ade7953 rev. a | page 61 of 68 table 15. 24-bit/32-bit registers address 24-bit 32-bit register name r/w default type register description 0x200 0x300 saglvl r/w 0x000000 unsigned sag voltage level 0x201 0x301 accmode r/w 0x000000 unsigned accumulation mode 0x203 0x303 ap_noload r/w 0x00e419 unsigned active power no-load level 0x204 0x304 var_noload r/w 0x00e419 unsigned reactive power no-load level 0x205 0x305 va_noload r/w 0x000000 unsigned apparent power no-load level 0x210 0x310 ava r 0x000000 signed instantaneous apparent power (current channel a) 0x211 0x311 bva r 0x000000 signed instantaneous apparent power (current channel b) 0x212 0x312 awatt r 0x000000 signed instantaneous active power (current channel a) 0x213 0x313 bwatt r 0x000000 signed instantaneou s active power (current channel b) 0x214 0x314 avar r 0x000000 signed instantaneous reactive power (current channel a) 0x215 0x315 bvar r 0x000000 signed instantaneous reactive power (current channel b) 0x216 0x316 ia r 0x000000 signed instantaneous current (current channel a) 0x217 0x317 ib r 0x000000 signed instantaneous current (current channel b) 0x218 0x318 v r 0x000000 signed instantane ous voltage (voltage channel) 0x21a 0x31a irmsa r 0x000000 unsigned ir ms register (current channel a) 0x21b 0x31b irmsb r 0x000000 unsigned ir ms register (current channel b) 0x21c 0x31c vrms r 0x000000 unsigned vrms register 0x21e 0x31e aenergya r 0x000000 signed active energy (current channel a) 0x21f 0x31f aenergyb r 0x000000 signed active energy (current channel b) 0x220 0x320 renergya r 0x000000 signed reac tive energy (current channel a) 0x221 0x321 renergyb r 0x000000 signed reac tive energy (current channel b) 0x222 0x322 apenergya r 0x000000 signed apparent energy (current channel a) 0x223 0x323 apenergyb r 0x000000 signed apparent energy (current channel b) 0x224 0x324 ovlvl r/w 0xffffff unsigned overvoltage level 0x225 0x325 oilvl r/w 0xffffff unsigned overcurrent level 0x226 0x326 vpeak r 0x000000 unsigned voltage channel peak 0x227 0x327 rstvpeak r 0x000000 unsigned read voltage peak with reset 0x228 0x328 iapeak r 0x000000 unsigned current channel a peak 0x229 0x329 rstiapeak r 0x000000 unsigned read current channel a peak with reset 0x22a 0x32a ibpeak r 0x000000 unsigned current channel b peak 0x22b 0x32b rstibpeak r 0x000000 unsigned re ad current channel b peak with reset 0x22c 0x32c irqena r/w 0x100000 unsigned in terrupt enable (current channel a) 0x22d 0x32d irqstata r 0x000000 unsigned in terrupt status (current channel a) 0x22e 0x32e rstirqstata r 0x000000 unsigned rese t interrupt status (current channel a) 0x22f 0x32f irqenb r/w 0x000000 unsigned in terrupt enable (current channel b) 0x230 0x330 irqstatb r 0x000000 unsigned inte rrupt status (current channel b) 0x231 0x331 rstirqstatb r 0x000000 unsigned reset interrupt status (current channel b) n/a 0x37f crc r 0xffffffff unsigned checksum 0x280 0x380 aigain r/w 0x400000 unsigned curren t channel gain (current channel a) 0x281 0x381 vgain r/w 0x400000 unsign ed voltage channel gain 0x282 0x382 awgain r/w 0x400000 unsigned acti ve power gain (current channel a) 0x283 0x383 avargain r/w 0x400000 unsigned reac tive power gain (current channel a) 0x284 0x384 avagain r/w 0x400000 unsigned appare nt power gain (current channel a) 0x285 0x385 reserved r/w 0x000000 signed this register should not be modified. 0x286 0x386 airmsos r/w 0x000000 signed ir ms offset (current channel a) 0x287 0x387 reserved r/w 0x000000 signed this register should not be modified. 0x288 0x388 vrmsos r/w 0x000000 signed vrms offset 0x289 0x389 awattos r/w 0x000000 signed active power offset correction (current channel a) 0x28a 0x38a avaros r/w 0x000000 signed reactive power offset correction (current channel a) 0x28b 0x38b avaos r/w 0x000000 signed apparent po wer offset correction (current channel a)
ade7953 data sheet rev. a | page 62 of 68 address 24-bit 32-bit register name r/w default type register description 0x28c 0x38c bigain r/w 0x400000 unsigned curr ent channel gain (current channel b) 0x28d 0x38d reserved r/w 0x400000 unsigned th is register should not be modified. 0x28e 0x38e bwgain r/w 0x400000 unsigned ac tive power gain (current channel b) 0x28f 0x38f bvargain r/w 0x400000 unsigned re active power gain (current channel b) 0x290 0x390 bvagain r/w 0x400000 unsigned appare nt power gain (current channel b) 0x291 0x391 reserved r/w 0x000000 signed this register should not be modified. 0x292 0x392 birmsos r/w 0x000000 signed ir ms offset (current channel b) 0x293 0x393 reserved r/w 0x000000 unsigned this register should not be modified. 0x294 0x394 reserved r/w 0x000000 unsigned this register should not be modified. 0x295 0x395 bwattos r/w 0x000000 signed active powe r offset correction (current channel b) 0x296 0x396 bvaros r/w 0x000000 signed reactive power offset correction (current channel b) 0x297 0x397 bvaos r/w 0x000000 signed apparent powe r offset correction (current channel b) 0x2ff 0x3ff last_rwdata r 0x000000 unsigned contains the data from the last successful 24-bit/32-bit register communication ade7953 register descriptions table 16. disnoload register (address 0x001) bits bit name default description 0 dis_apnload 0 1 = disable the active power no-load feature on current channel a and current channel b 1 dis_varnload 0 1 = disable the reactive power no-loa d feature on current channel a and current channel b 2 dis_vanload 0 1 = disable the apparent power no-loa d feature on current channel a and current channel b table 17. lcycmode register (address 0x004) bits bit name default description 0 alwatt 0 0 = disable active energy line cycle accumulation mode on current channel a 1 = enable active energy line cycle accumulation mode on current channel a 1 blwatt 0 0 = disable active energy line cycle accumulation mode on current channel b 1 = enable active energy line cycle accumulation mode on current channel b 2 alvar 0 0 = disable reactive energy line cycle accumulation mode on current channel a 1 = enable reactive energy line cycle accumulation mode on current channel a 3 blvar 0 0 = disable reactive energy line cycle accumulation mode on current channel b 1 = enable reactive energy line cycle accumulation mode on current channel b 4 alva 0 0 = disable apparent energy line cycle accumulation mode on current channel a 1 = enable apparent energy line cycle accumulation mode on current channel a 5 blva 0 0 = disable apparent energy line cycle accumulation mode on current channel b 1 = enable apparent energy line cycle accumulation mode on current channel b 6 rstread 1 0 = disable read with reset for all registers 1 = enable read with reset for all registers table 18. config register (address 0x102) bits bit name default description 0 intena 0 1 = integrator enable (current channel a) 1 intenb 0 1 = integrator enable (current channel b) 2 hpfen 1 1 = hpf enable (all channels) 3 pfmode 0 0 = power factor is based on instantaneous powers 1 = power factor is based on line cycle accumulation mode energies 4 revp_cf 0 0 = revp is updated on cf1 1 = revp is updated on cf2 5 revp_pulse 0 0 = revp is high when reverse polarity is true, low when reverse polarity is false 1 = revp outputs a 1 hz pulse when reve rse polarity is true and is low when reverse polarity is false 6 zxlpf 0 0 = zx lpf is enabled 1 = zx lpf is disabled 7 swrst 0 setting this bit enables a software reset
data sheet ade7953 rev. a | page 63 of 68 bits bit name default description 8 crc_enable 0 0 = crc is disabled 1 = crc is enabled [10:9] pwr_lpf_sel 00 low-pass filter options setting filtering 00 ~250 ms 01 ~500 ms 10 ~1 sec 11 ~2 sec 11 zx_i 0 0 = zx_i is based on current channel a 1 = zx_i is based on current channel b [13:12] zx_edge 00 zero-crossing interrupt edge selection setting edge selection 00 interrupt is issued on both positive-going and negative-going zero crossing 01 interrupt is issued on negative-going zero crossing 10 interrupt is issued on positive-going zero crossing 11 interrupt is issued on both positive-going and negative-going zero crossing 14 reserved 0 reserved 15 comm_lock 1 0 = communication locking feature is enabled 1 = communication locking feature is disabled table 19. cfmode register (address 0x107) bits bit name default description [3:0] cf1sel 0000 configuration of output signal on cf1 pin setting cf1 output signal configuration 0000 cf1 is proportional to active power (current channel a) 0001 cf1 is proportional to reactive power (current channel a) 0010 cf1 is proportional to apparent power (current channel a) 0011 cf1 is proportional to irms (current channel a) 0100 cf1 is proportional to active power (current channel b) 0101 cf1 is proportional to reactive power (current channel b) 0110 cf1 is proportional to apparent power (current channel b) 0111 cf1 is proportional to irms (current channel b) 1000 cf1 is proportional to irms (current channel a) + irms (current channel b) 1001 cf1 is proportional to active power (current channel a) + active power (current channel b) [7:4] cf2sel 0000 configuration of output signal on cf2 pin setting cf2 output signal configuration 0000 cf2 is proportional to active power (current channel a) 0001 cf2 is proportional to reactive power (current channel a) 0010 cf2 is proportional to apparent power (current channel a) 0011 cf2 is proportional to irms (current channel a) 0100 cf2 is proportional to active power (current channel b) 0101 cf2 is proportional to reactive power (current channel b) 0110 cf2 is proportional to apparent power (current channel b) 0111 cf2 is proportional to irms (current channel b) 1000 cf2 is proportional to irms (current channel a) + irms (current channel b) 1001 cf2 is proportional to active power (current channel a) + active power (current channel b) 8 cf1dis 1 0 = cf1 output is enabled 1 = cf1 output is disabled 9 cf2dis 1 0 = cf2 output is enabled 1 = cf2 output is disabled
ade7953 data sheet rev. a | page 64 of 68 table 20. alt_output register (address 0x110) bits bit name default description [3:0] zx_alt 0000 configuration of zx pin (pin 1) setting zx pin configuration 0000 zx detection is output on pin 1 (default) 0001 sag detection is output on pin 1 0010 reserved 0011 reserved 0100 reserved 0101 active power no-load detection (current channel a) is output on pin 1 0110 active power no-load detection (current channel b) is output on pin 1 0111 reactive power no-load detection (current channel a) is output on pin 1 1000 reactive power no-load detection (current channel b) is output on pin 1 1001 unlatched waveform sampling signal is output on pin 1 1010 irq signal is output on pin 1 1011 zx_i detection is output on pin 1 1100 revp detection is output on pin 1 1101 reserved (set to default value) 111x reserved (set to default value) [7:4] zxi_alt 0000 configuration of zx_i pin (pin 21) setting zx_i pin configuration 0000 zx_i detection is output on pin 21 (default) 0001 sag detection is output on pin 21 0010 reserved 0011 reserved 0100 reserved 0101 active power no-load detection (current channel a) is output on pin 21 0110 active power no-load detection (current channel b) is output on pin 21 0111 reactive power no-load detection (current channel a) is output on pin 21 1000 reactive power no-load detection (current channel b) is output on pin 21 1001 unlatched waveform sampling signal is output on pin 21 1010 irq signal is output on pin 21 1011 zx detection is output on pin 21 1100 revp detection is output on pin 21 1101 reserved (set to default value) 111x reserved (set to default value) [11:8] revp_alt 0000 configuration of revp pin (pin 20) setting revp pin configuration 0000 revp detection is output on pin 20 (default) 0001 sag detection is output on pin 20 0010 reserved 0011 reserved 0100 reserved 0101 active power no-load detection (current channel a) is output on pin 20 0110 active power no-load detection (current channel b) is output on pin 20 0111 reactive power no-load detection (current channel a) is output on pin 20 1000 reactive power no-load detection (current channel b) is output on pin 20 1001 unlatched waveform sampling signal is output on pin 20 1010 irq signal is output on pin 20 1011 zx detection is output on pin 20 1100 zx_i detection is output on pin 20 1101 reserved (set to default value) 111x reserved (set to default value)
data sheet ade7953 rev. a | page 65 of 68 table 21. accmode register (address 0x201 and address 0x301) bits bit name default description [1:0] awattacc 00 current channel a active energy accumulation mode setting active energy accumulation mode (current channel a) 00 normal mode 01 positive-only accumulation mode 10 absolute accumulation mode 11 reserved [3:2] bwattacc 00 current channel b active energy accumulation mode setting active energy accumulation mode (current channel b) 00 normal mode 01 positive-only accumulation mode 10 absolute accumulation mode 11 reserved [5:4] avaracc 00 current channel a reactive energy accumulation mode setting reactive energy accumulation mode (current channel a) 00 normal mode 01 antitamper accumulation mode 10 absolute accumulation mode 11 reserved [7:6] bvaracc 00 current channel b reactive energy accumulation mode setting reactive energy accumulation mode (current channel b) 00 normal mode 01 antitamper accumulation mode 10 absolute accumulation mode 11 reserved 8 avaacc 0 0 = current channel a apparent energy accumulation is in normal mode 1 = current channel a apparent energy accumulation is based on irmsa 9 bvaacc 0 0 = current channel b apparent energy accumulation is in normal mode 1 = current channel b apparent energy accumulation is based on irmsb 10 apsign_a 0 0 = active power on current channel a is positive 1 = active power on current channel a is negative 11 apsign_b 0 0 = active power on current channel b is positive 1 = active power on current channel b is negative 12 varsign_a 0 0 = reactive power on current channel a is positive 1 = reactive power on current channel a is negative 13 varsign_b 0 0 = reactive power on current channel b is positive 1 = reactive power on current channel b is negative [15:14] reserved 00 reserved 16 actnload_a 0 0 = current channel a active energy is out of no-load condition 1 = current channel a active energy is in no-load condition 17 vanload_a 0 0 = current channel a apparent energy is out of no-load condition 1 = current channel a apparent energy is in no-load condition 18 varnload_a 0 0 = current channel a reactive energy is out of no-load condition 1 = current channel a reactive energy is in no-load condition 19 actnload_b 0 0 = current channel b active energy is out of no-load condition 1 = current channel b active energy is in no-load condition 20 vanload_b 0 0 = current channel b apparent energy is out of no-load condition 1 = current channel b apparent energy is in no-load condition 21 varnload_b 0 0 = current channel b reactive energy is out of no-load condition 1 = current channel b reactive energy is in no-load condition
ade7953 data sheet rev. a | page 66 of 68 interrupt enable and interrupt status registers current channel a and voltage channel registers table 22. irqena register (address 0x22c and address 0x32c) bits bit name description 0 aehfa set to 1 to enable an interrupt when the active energy is half full (current channel a) 1 varehfa set to 1 to enable an interrupt when the reactive energy is half full (current channel a) 2 vaehfa set to 1 to enable an interrupt when the apparent energy is half full (current channel a) 3 aeofa set to 1 to enable an interrupt when the active energy has overflowed or underflowed (current channel a) 4 vareofa set to 1 to enable an interrupt when the reactive energy has overflowed or underflowed (current channel a) 5 vaeofa set to 1 to enable an interrupt when the apparent energy has overflowed or underflowed (current channel a) 6 ap_noloada set to 1 to enable an interrupt when the active power no-load condition is detected on current channel a 7 var_noloada set to 1 to enable an inte rrupt when the reactive power no-load cond ition is detected on current channel a 8 va_noloada set to 1 to enable an interrupt when the appare nt power no-load condition is detected on current channel a 9 apsign_a set to 1 to enable an interrupt when the si gn of active energy has changed (current channel a) 10 varsign_a set to 1 to enable an interrupt when the si gn of reactive energy has changed (current channel a) 11 zxto_ia set to 1 to enable an interrupt when the zero crossing has been missing on current channel a for the length of time specified in the zxtout register 12 zxia set to 1 to enable an interrupt when the current channel a zero crossing occurs 13 oia set to 1 to enable an interrupt when the current channel a peak has exceeded the overcurrent threshold set in the oilvl register 14 zxto set to 1 to enable an interrupt when a zero crossing ha s been missing on the voltage channel for the length of time specified in the zxtout register 15 zxv set to 1 to enable an interrupt when the voltage channel zero crossing occurs 16 ov set to 1 to enable an interrupt when the voltage peak has exceeded the overvoltage threshold set in the ovlvl register 17 wsmp set to 1 to enable an interrup t when new waveform data is acquired 18 cycend set to 1 to enable an interrupt when it is the end of a line cycle accumulation period 19 sag set to 1 to enable an interrupt when a sag event has occurred 20 reset this interrupt is always enabled and cannot be disabled 21 crc set to 1 to enable an interr upt when the checksum has changed table 23. irqstata register (address 0x22d and addre ss 0x32d) and rstirqstata register (address 0x22e and address 0x32e) bits bit name description 0 aehfa set to 1 when the active energy register is half full (current channel a) 1 varehfa set to 1 when the reactive energy register is half full (current channel a) 2 vaehfa set to 1 when the apparent energy register is half full (current channel a) 3 aeofa set to 1 when the active energy register has overflowed or underflowed (current channel a) 4 vareofa set to 1 when the reactive energy register has overflowed or underflowed (current channel a) 5 vaeofa set to 1 when the apparent energy register has overflowed or underflowed (current channel a) 6 ap_noloada set to 1 when the active power no -load condition is detected current channel a 7 var_noloada set to 1 when the reactive power no-load condition is detected current channel a 8 va_noloada set to 1 when the apparent power no-load condition is detected current channel a 9 apsign_a set to 1 when the sign of active energy has changed (current channel a) 10 varsign_a set to 1 when the sign of reactive energy has changed (current channel a) 11 zxto_ia set to 1 when a zero crossing has been missing on curr ent channel a for the length of time specified in the zxtout register 12 zxia set to 1 when a current channel a zero crossing is detected 13 oia set to 1 when the current channel a peak has exceed ed the overcurrent threshold set in the oilvl register 14 zxto set to 1 when a zero crossing has been missing on the voltage channel for the length of time specified in the zxtout register 15 zxv set to 1 when the voltage channel zero crossing is detected 16 ov set to 1 when the voltage peak has exceeded the overvoltage threshold set in the ovlvl register
data sheet ade7953 rev. a | page 67 of 68 bits bit name description 17 wsmp set to 1 when new waveform data is acquired 18 cycend set to 1 at the end of a line cycle accumulation period 19 sag set to 1 when a sag event has occurred 20 reset set to 1 at the end of a software or hardware reset 21 crc set to 1 when the checksum has changed current channel b registers table 24. irqenb register (address 0x22f and address 0x32f) bits bit name description 0 aehfb set to 1 to enable an interrupt when the active energy is half full (current channel b) 1 varehfb set to 1 to enable an interrupt when the reactive energy is half full (current channel b) 2 vaehfb set to 1 to enable an interrupt when the apparent energy is half full (current channel b) 3 aeofb set to 1 to enable an interrup t when the active energy has overflowed or underflowed (current channel b) 4 vareofb set to 1 to enable an interrupt when the reactive energy has overflowed or underflowed (current channel b) 5 vaeofb set to 1 to enable an interrupt when the apparent energy has overflowed or underflowed (current channel b) 6 ap_noloadb set to 1 to enable an interrupt when the ac tive power no-load detection on current channel b occurs 7 var_noloadb set to 1 to enable an interrupt when the re active power no-load detection on current channel b occurs 8 va_noloadb set to 1 to enable an interrupt when the ap parent power no-load detection on current channel b occurs 9 apsign_b set to 1 to enable an interrupt when the si gn of active energy has changed (current channel b) 10 varsign_b set to 1 to enable an interrupt when the si gn of reactive energy has changed (current channel b) 11 zxto_ib set to 1 to enable an interrupt when a zero crossing has been missing on current channel b for the length of time specified in the zxtout register 12 zxib set to 1 to enable an interrupt when the current channel b zero crossing occurs 13 oib set to 1 to enable an interrupt when the current channel b peak has exceeded the overcurrent threshold set in the oilvl register table 25. irqstatb register (addre ss 0x230 and address 0x330) and rstirqstatb register (address 0x231 and address 0x331) bits bit name description 0 aehfb set to 1 when the active energy register is half full (current channel b) 1 varehfb set to 1 when the reactive energy register is half full (current channel b) 2 vaehfb set to 1 when the apparent energy register is half full (current channel b) 3 aeofb set to 1 when the active energy register has overflowed or underflowed (current channel b) 4 vareofb set to 1 when the reactive energy register has overflowed or underflowed (current channel b) 5 vaeofb set to 1 when the apparent energy register has overflowed or underflowed (current channel b) 6 ap_noloadb set to 1 when the active power no-l oad condition is detected on current channel b 7 var_noloadb set to 1 when the reactive power no-load condition is detected on current channel b 8 va_noloadb set to 1 when the apparent power no-load condition is detected on current channel b 9 apsign_b set to 1 when the sign of active energy has changed (current channel b) 10 varsign_b set to 1 when the sign of reactive energy has changed (current channel b) 11 zxto_ib set to 1 when a zero crossing has been missing on curr ent channel b for the length of time specified in the zxtout register 12 zxib set to 1 when a current channel b zero crossing is obtained 13 oib set to 1 when current channel b peak has exceeded the overcurrent threshold set in the oilvl register
ade7953 data sheet rev. a | page 68 of 68 outline dimensions 120909-a 1 0.50 bsc bottom view top view 28 8 14 15 21 22 7 exposed pad p i n 1 i n d i c a t o r 3.40 3.30 sq 3.20 0.50 0.40 0.30 s eating plane 0.80 0.75 0.70 0.05 max 0.02 nom 0.203 ref coplanarity 0.08 pin 1 indicator 0.30 0.25 0.20 forproperconnectionof the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. compliant to jedec standards mo-220-whhd-3. 5.10 5.00 sq 4.90 figure 77. 28-lead lead frame chip scale package [lfcsp_wq] 5 mm 5 mm body, very very thin quad (cp-28-6) dimensions shown in millimeters ordering guide model 1 temperature range package description package option ade7953acpz ?40c to +85c 28-lead lfcsp_wq cp-28-6 ade7953acpz-rl ?40c to +85c 28-lead lfcsp_wq, 13 tape and reel cp-28-6 EVAL-ADE7953EBZ evaluation board 1 z = rohs compliant part. i 2 c refers to a communications protocol originally developed by philips semiconductors (now nxp semiconductors). ?2011 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d09320-0-11/11(a)


▲Up To Search▲   

 
Price & Availability of EVAL-ADE7953EBZ

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X